Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
mdn-browser-compat-data
Advanced tools
https://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.
You can install mdn-browser-compat-data as a node package.
npm install mdn-browser-compat-data
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.
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 other ECMAScript language features.
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.
webextensions/ contains data for WebExtensions JavaScript APIs and manifest keys.
xslt/ contains data for XSLT elements, attributes, and global attributes.
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.
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.
It takes 1-2 weeks for changes in this data to be reflected in MDN's browser compatibility tables. The process is:
Here are some projects using the data, as an npm module or directly:
FAQs
Browser compatibility data provided by MDN Web Docs
The npm package mdn-browser-compat-data receives a total of 50,995 weekly downloads. As such, mdn-browser-compat-data popularity was classified as popular.
We found that mdn-browser-compat-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.