Read how this project is governed.
Chat on chat.mozilla.org#mdn.
You can install mdn-browser-compat-data as a node package.
npm install mdn-browser-compat-data
const bcd = require('mdn-browser-compat-data');
// returns a compat data object (see schema)
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.
mathml/ contains data for MathML elements, attributes, and global attributes.
svg/ contains data for SVG elements, attributes, and global attributes.
webdriver/ contains data for WebDriver commands.
xpath/ contains data for XPath axes, and functions.
xslt/ contains data for XSLT elements, attributes, and global attributes.
Format of the browser compat json files
The definitive description of the format used to represent compatibility data is the schema file. You can also have a look at the schema documentation.
If you find a problem, please file a bug.
We're very happy to accept contributions to this data. See Contributing to browser-compat-data for more information.
Projects using the data
Here are some projects using the data, as an npm module or directly:
- Add-ons Linter - the Add-ons Linter is used on addons.mozilla.org and the web-ext tool. It uses browser-compat-data to check that the Firefox version that the add-on lists support for does in fact support the APIs used by the add-on.
- Browser Compatibility Data Explorer - View, search, and visualize data from the compatibility dataset.
- caniuse - In addition to the existing caniuse database, caniuse includes features from the MDN BCD project, formatted and interactive like any other caniuse support table.
- 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.
- Visual Studio Code - Shows the compatibility information in the code completion popup.