Browser compatibility data provided by MDN Web Docs
npm install @patrickkettner/mdn-browser-compat-datahttps://github.com/mdn/browser-compat-data
This repository contains compatibility data for Web technologies.
Browser compatibility data describes which platforms (where "platforms" are
usually, but not always, web browsers) support particular Web APIs.
This data can be used in documentation, to build compatibility tables listing
browser support for APIs. For example:
Browser support for WebExtension APIs.



Maintained by the MDN team at Mozilla.
npm install mdn-browser-compat-data
`Usage
`js
const bcd = require('mdn-browser-compat-data');
bcd.css.properties.background;
// returns a compat data object (see schema)
``There's a top-level directory for each broad area covered: for example, "http",
"javascript", "webextensions". Inside each of these directories is one or more
JSON file containing the compatibility data.
Please note that we have not (yet) migrated all compatibility data from the MDN wiki pages into this repository.
- api/ contains data for each Web API interface.
- css/ contains data for CSS properties, selectors and at-rules.
- html/ contains data for
HTML elements, attributes and global attributes.
- http/ contains data for HTTP headers, statuses and methods.
- javascript/ contains data for JavaScript built-in Objects, statement, operators and or other ECMAScript language features.
- webdriver/ contains data for WebDriver commands.
- webextensions/ contains data for WebExtensions JavaScript APIs and manifest keys.
- svg/ contains data for SVG elements, attributes and global attributes.
*Please note that we do not (yet) guarantee the stability of the data format.
You're welcome to use the data, but its structure is subject to change without notice.*
If you find a problem, please file a bug.
We're very happy to accept contributions to this data. Please familiarize yourself
with the schema and send us a pull request. See also the Contributing file for more information.
* Compat Report - Firefox Add-on that shows compatibility data for the current site in the developer tools.
* compat-tester - Scan local documents for compatibility issues.
* mdncomp - View compatibility data on the command line.