Gathering detailed insights and metrics for @xelzs/mdn-browser-compat-api
Gathering detailed insights and metrics for @xelzs/mdn-browser-compat-api
Gathering detailed insights and metrics for @xelzs/mdn-browser-compat-api
Gathering detailed insights and metrics for @xelzs/mdn-browser-compat-api
Request the @mdn/browser-compat-data (used by caniuse.com)
npm install @xelzs/mdn-browser-compat-api
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
21 Commits
1 Watchers
2 Branches
2 Contributors
Updated on Sep 08, 2023
Latest Version
1.1.0
Package Id
@xelzs/mdn-browser-compat-api@1.1.0
Unpacked Size
12.03 kB
Size
3.77 kB
File Count
8
NPM Version
6.14.15
Node Version
12.22.7
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
1
Request the @mdn/browser-compat-data (used by caniuse.com)
You can install @xelzs/mdn-browser-compat-api
as a node package.
$ npm install @xelzs/mdn-browser-compat-api
1const browserCompatApi = require('@xelzs/mdn-browser-compat-api'); 2 3browserCompatApi.getFeatures(); 4browserCompatApi.getFeatures('css'); 5browserCompatApi.getFolders(); 6browserCompatApi.getBrowsers(); 7browserCompatApi.find('fit-content', 'css'); 8browserCompatApi.get('css.properties.width.fit-content'); 9browserCompatApi.updateData(); 10// ...
browserCompatApi.getFeatures(folder)
Get a list of features from mdn with the formatted paths. You can add an optional parameter folder
to get features from a folder.
1browserCompatApi.getFeatures(); 2/* 3[ 4 "api.AbortController", 5 "api.AbortController.AbortController", 6 "api.AbortController.abort", 7 "api.AbortController.signal", 8 ... 9] 10*/
browserCompatApi.getFolders()
Get the list of folders inside @mdn/browser-compat-data.
1browserCompatApi.getFolders(); 2/* 3[ 4 "api", 5 "browsers", 6 "css", 7 "css.at-rules", 8 "css.properties", 9 "css.selectors", 10 "css.types", 11 ... 12*/
browserCompatApi.getBrowsers()
Get the list of browsers. You check the schema at @mdn compat-data-schema.md
browserCompatApi.find(query, folder)
Search for a feature. You can add an optional parameter folder
to search inside specific folder.
1browserCompatApi.find('fit-content', 'css'); 2/* 3[ 4 'css.properties.block-size.fit-content', 5 'css.properties.grid-template-columns.fit-content', 6 'css.properties.grid-template-rows.fit-content', 7 'css.properties.height.fit-content', 8 'css.properties.inline-size.fit-content', 9 'css.properties.max-block-size.fit-content', 10 'css.properties.max-height.fit-content', 11 'css.properties.max-inline-size.fit-content', 12 'css.properties.max-width.fit-content', 13 'css.properties.min-block-size.fit-content', 14 'css.properties.min-height.fit-content', 15 'css.properties.min-inline-size.fit-content', 16 'css.properties.min-width.fit-content', 17 'css.properties.width.fit-content' 18] 19*/
browserCompatApi.get('css.properties.width.fit-content')
Get a list of object with corresponding features.
You check the schema at @mdn compat-data-schema.md
browserCompatApi.updateData()
Update data files. (By default, generated during installation).
Changelog is accessible in the CHANGELOG.md file or in the release section.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/6 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More