This package exposes easy to use Web Platform documentation, specification, and compatibility data.
It contains information about each and every Web feature that's documented on MDN. This includes CSS properties or selectors, HTML tags or attributes, or even JavaScript language features or APIs.
The data comes from the following repositories:
-
This repository is used to extract the description for each and every Web feature contained in this package.
-
This repository is used to extract browser compatibility data for each Web Platform feature.
-
This repository is used to extract formal definitions from W3C specifications.
Install the package:
npm install mdn-web-data
Use the data:
import mdnWebData from "mdn-web-data";
console.log(mdnWebData.css.property.margin.summary);
- Clone the repository.
- Install the dependencies:
npm install
. - Generate the data:
npm run build
.