Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caniuse-db

Package Overview
Dependencies
Maintainers
1
Versions
1757
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caniuse-db

Raw browser/feature support data from caniuse.com

  • 1.0.30001654
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is caniuse-db?

The caniuse-db npm package provides a database of browser support for various web technologies. It is a programmatic interface to the data available on the Can I use website, which is a popular resource for web developers to check the compatibility of web features across different browsers.

What are caniuse-db's main functionalities?

Querying Browser Support Data

This feature allows you to query the database for support information on specific web technologies. In this example, we are checking the support data for CSS Grid.

const caniuse = require('caniuse-db/data.json');

// Example: Check support for CSS Grid
const cssGridSupport = caniuse.data['css-grid'];
console.log(cssGridSupport);

Accessing Browser Versions

This feature provides access to the list of browsers and their versions that are included in the Can I use database. This can be useful for understanding which browsers are being tracked.

const browsers = require('caniuse-db/browsers');

// Example: List all browsers and their versions
console.log(browsers);

Checking Feature Status

This feature allows you to check the status of a specific web technology feature, such as whether it is in development, under consideration, or fully supported.

const statuses = require('caniuse-db/statuses');

// Example: Get the status of a feature
const featureStatus = statuses['css-grid'];
console.log(featureStatus);

Other packages similar to caniuse-db

Keywords

FAQs

Package last updated on 30 Aug 2024

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