Package Exports
- web-features
- web-features/index.json
Readme
Curated list of Web platform features
This package is experimental, expect frequent breaking changes!
Usage
npm install web-featuresimport webFeatures from 'web-features';Rendering Baseline statuses with web-features
If you're using web-features to render Baseline iconography or browser logos with support markers, then you must follow these procedures to ensure consistent usage.
For Baseline iconography, follow this procedure for each feature:
- If
status.baselineis"high", then show an affirmative "widely available" icon. - If
status.baselineis"low", then show an affirmative "newly available" icon. - If
status.baselineisfalse, then show a "limited availability" non-Baseline icon. - If
status.baselineisundefined, then do not show any Baseline or non-Baseline badge.
For browser support iconography (that is, browser logos and checkmarks and Xs), follow this procedure for each browser:
- Do not show a version number, whether one is provided.
- If
status.baselineis"high"or"low", then show a green checkmark (✅, "supported") beside each browser's logo icon. - If
status.baselineisfalseand the browser'sstatus.supportkey (for example,status.support.edge) isundefinedorfalse, then show a gray X ("unsupported") beside the browser's logo icon. - If
status.baselineis"high"or"low"and the browser'sstatus.supportkey is a string, then show a green checkmark ("supported") beside the brower's logo icon.