mdn-data
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
MDN-Data is an open Web data package provided by the Mozilla Developer Network (MDN). It serves as a repository that contains general data associated with Web technologies. This data is used to build MDN Web Docs' information boxes and sidebar navigation. Moreover, the contents of MDN-Data are also utilized by external tools like the CSSTree CSS parser. Categories covered in this package include data about Web APIs, CSS properties, functions, selectors, syntaxes and more, along with API inheritance and localization strings.
To use the mdn-data package, you would typically require it in your JavaScript application after installation. However, note that MDN is in the process of deprecating the mdn/data
package in favor of w3c/webref
. Therefore, you should consider this before incorporating it into a new project.
An example usage could be as follows:
const mdnData = require('mdn-data');
console.log(mdnData.css.properties.color);
This would log the data for the 'color' CSS property.
The mdn-data repository's official documentation is located within the repository itself on Github. The documentation can be accessed on the following URL: git+https://github.com/mdn/data.git. Here, you can find specific README files for different parts of the data package, like the CSS data, which further break down their respective content. API data, CSS data and localization data each have their own dedicated sections and JSON files within the repository.