New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

web-features

Package Overview
Dependencies
Maintainers
0
Versions
1330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-features

Curated list of Web platform features

  • 2.22.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3K
increased by18.83%
Maintainers
0
Weekly downloads
 
Created
Source

Curated list of Web platform features

web-features is the package that describes Web platform features and provides Baseline status reports.

Subscribe to the Upcoming changes announcements thread for news about upcoming releases, such as breaking changes or major features.

Usage

npm install web-features
import { browsers, features, groups, snapshots } from "web-features";

Or, without Node.js:

import data from "web-features/data.json" with { type: "json" };
const { browsers, features, groups, snapshots } = data;

To import the JSON schema with or without Node.js:

import schema from "web-features/data.schema.json" with { type: "json" };

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 the name and logo usage guidelines.

For Baseline iconography, follow this procedure for each feature:

  1. If status.baseline is "high", then show an affirmative "widely available" icon.

  2. If status.baseline is "low", then show an affirmative "newly available" icon.

  3. If status.baseline is false, then show a "limited availability" non-Baseline icon.

    Note: All features that have the discouraged property are, by definition, non-Baseline, and status.baseline will be false. If a feature has the discouraged property, consider showing a message describing the feature's discouraged status instead of Baseline iconography. Showing Baseline iconography for discouraged features may confuse readers.

  4. If status.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 browser:

  1. Do not show a version number, whether one is provided.
  2. If status.baseline is "high" or "low", then show a green checkmark (✅, "supported") beside each browser's logo icon.
  3. If status.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.baseline is "high" or "low" and the browser's status.support key is a string, then show a green checkmark ("supported") beside the browser's logo icon.

FAQs

Package last updated on 06 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc