Socket
Socket
Sign inDemoInstall

caniuse-lite

Package Overview
Dependencies
0
Maintainers
3
Versions
786
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

caniuse-lite

A smaller version of caniuse-db, with only the essentials!


Version published
Maintainers
3
Weekly downloads
43,442,783
decreased by-8.25%

Weekly downloads

Package description

What is caniuse-lite?

The caniuse-lite npm package is a lighter version of the full caniuse database, which provides up-to-date browser support tables for front-end web technologies. It is used for checking the compatibility of web features in different browsers and browser versions.

What are caniuse-lite's main functionalities?

Browser support data retrieval

Retrieve browser support data for a specific feature, such as CSS flexbox.

const caniuse = require('caniuse-lite');
const featureData = caniuse.feature(caniuse.features.flexbox);
console.log(featureData);

Browser usage statistics

Get usage statistics for different versions of a specific browser, like Chrome.

const caniuse = require('caniuse-lite');
const browserStats = caniuse.getBrowserUsageByVersion('chrome');
console.log(browserStats);

Data for browser versions

Retrieve a list of versions for a given browser, such as Firefox.

const caniuse = require('caniuse-lite');
const versions = caniuse.getVersions('firefox');
console.log(versions);

Region-based browser usage statistics

Get browser usage statistics for a specific region, like the United States.

const caniuse = require('caniuse-lite');
const regionUsage = caniuse.getRegion('US');
console.log(regionUsage);

Other packages similar to caniuse-lite

Readme

Source

caniuse-lite

A smaller version of caniuse-db, with only the essentials!

Docs

Read full docs here.

Keywords

FAQs

Last updated on 22 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc