![Introducing Dashboard Analytics](https://cdn.sanity.io/images/cgdhsj6q/production/af327c5bd94708db501516a75da6870aef894c64-2286x1522.png?w=400&fit=max&auto=format)
Product
Introducing Dashboard Analytics
We're introducing a new Analytics feature in the Socket dashboard so you can view changes in your organization's and repositories' alerts over time.
caniuse-db
Advanced tools
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.
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);
Browserslist is a tool that allows you to specify which browsers you want to support in your project by querying a list of browsers. It is often used in conjunction with tools like Autoprefixer and Babel to ensure compatibility with the specified browsers. Unlike caniuse-db, which provides detailed support data for individual web technologies, Browserslist focuses on defining and querying browser support configurations.
The mdn-browser-compat-data package provides compatibility data for Web technologies as displayed on MDN Web Docs. It includes data for HTML, CSS, JavaScript, and other web APIs. This package is similar to caniuse-db in that it provides browser support information, but it is sourced from MDN and may have different coverage and data structure.
This repo contains raw data from the caniuse.com support tables. It serves two purposes:
The ability for anyone interested to update or add to the support data on the site. If you are interested in this, please read the CONTRIBUTING file.
Access to the site's data for other projects. For this use the fulldata-json/data-2.0.json
file which includes all support data. (data.json
is also available for backwards compatibility.)
The data in this repo is available for use under a CC BY 4.0 license (https://creativecommons.org/licenses/by/4.0/). For attribution just mention somewhere that the source is caniuse.com. If you have any questions about using the data for your project please contact me here: https://a.deveria.com/contact
Caniuse.com is created and maintained by Alexis Deveria
https://caniuse.com/
https://a.deveria.com/
FAQs
Raw browser/feature support data from caniuse.com
The npm package caniuse-db receives a total of 387,244 weekly downloads. As such, caniuse-db popularity was classified as popular.
We found that caniuse-db demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
We're introducing a new Analytics feature in the Socket dashboard so you can view changes in your organization's and repositories' alerts over time.
Security News
A new OpenSSF report uncovers critical gaps in secure software training, with 75% of new developers unfamiliar with secure practices, highlighting urgent educational needs.
Security News
The 2023 Python Developers Survey reveals key trends in packaging, web frameworks, and developer demographics, highlighting a shift toward innovative tools as the Python community diversifies and grows among less experienced developers.