Socket
Socket
Sign inDemoInstall

caniuse-lite

Package Overview
Dependencies
0
Maintainers
3
Versions
779
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

caniuse-lite

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

    1.0.30001591latest
    GitHub
    npm

Version published
Maintainers
3
Weekly downloads
46,571,161
increased by4.55%

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 27 Feb 2024

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the 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