https://github.com/captainbrosset/mdn-web-data
Package that contains MDN descriptions, urls, and compat data for all web features
https://github.com/captainbrosset/mdn-web-data
css html js web
Last synced: about 1 month ago
JSON representation
Package that contains MDN descriptions, urls, and compat data for all web features
- Host: GitHub
- URL: https://github.com/captainbrosset/mdn-web-data
- Owner: captainbrosset
- License: other
- Created: 2023-04-03T08:57:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T12:00:21.000Z (about 3 years ago)
- Last Synced: 2025-01-23T00:28:18.660Z (over 1 year ago)
- Topics: css, html, js, web
- Language: JavaScript
- Homepage:
- Size: 1.99 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MDN Web Data
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:
* [mdn/content](https://github.com/mdn/content):
This repository is used to extract the description for each and every Web feature contained in this package.
* [mdn/browser-compat-data](https://github.com/mdn/browser-compat-data):
This repository is used to extract browser compatibility data for each Web Platform feature.
* [w3c/webref](https://github.com/w3c/webref):
This repository is used to extract formal definitions from W3C specifications.
## Usage
Install the package:
```bash
npm install mdn-web-data
```
Use the data:
```js
import mdnWebData from "mdn-web-data";
console.log(mdnWebData.css.property.margin.summary);
```
## Generate a data update
1. Clone the repository.
1. Install the dependencies: `npm install`.
1. Generate the data: `npm run build`.