0.8.1 • Published 1 day ago

web-features v0.8.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 day ago

Curated list of Web platform features

This package is experimental, expect frequent breaking changes!

Usage

npm install web-features
import webFeatures from 'web-features';
// import webFeatures from 'web-features/index.json' assert { type: 'json' }

Rendering baseline statuses with web-features

If you're using web-features to render baseline iconography (green check logo and yellow X caution logo) 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:

  1. If status.is_baseline is true, then show the baseline (🟢 affirmative, green check) badge.
  2. If status.is_baseline is false, then show the non-baseline (🟡 caution, yellow X) badge.
  3. If status.is_baseline is undefined, 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 feature and browser (Chrome, Edge, Firefox, and Safari):

  1. Do not show a version number, whether one is provided.
  2. If status.is_baseline is true, then show a green checkmark (✅) beside each browser's logo icon.
  3. If status.is_baseline is false and the browser's status.support key (for example, status.support.edge) is undefined or false, then show a gray X ("unsupported") beside the browser's logo icon.
  4. If status.is_basline is true and the browser's status.support key is a string, then show a green checkmark ("supported") beside the brower's logo icon.
0.8.1

2 days ago

0.8.0

6 days ago

0.7.0

14 days ago

0.6.4

15 days ago

0.6.3

29 days ago

0.6.2

1 month ago

0.6.1

2 months ago

0.6.0

2 months ago

0.5.1

4 months ago

0.5.0

5 months ago

0.5.0-alpha.2

5 months ago

0.5.0-alpha.1

5 months ago

0.5.0-alpha.0

5 months ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.1.0

1 year ago