How browserslist/caniuse-lite works
caniuse-lite is a compact browser-compatibility data package. Consumers use its API to access browser agents, enumerate feature records and expand an individual feature, or expand regional usage data. The feature and region records retain selected caniuse-db fields in packed form. The README documents these results, but the unpacker implementation is not present in the supplied tree, so its internal calls are not mapped; packing/build code is omitted.
Main entry points: features.js Feature API · agents.js Agents API · regions Region API · features Feature Records
Components 11
Consumer API
- Feature API
data/features.js - Agents API
data/agents.js - Region API
data/regions
Browser Data
- Browser Agents
data/agents.js - Browser Keys
data/browsers.js - Version Keys
data/browserVersions.js
Compatibility Data
- Feature Index
data/features.js - Feature Records
data/features - Support Groups
data/versionGroups.js
Regional Data
- Regional Records
data/regions
Other components
- Library Consumer
Connections 8
- Library Consumer → Agents API: requests agents
- Agents API → Browser Agents: returns subset
data/agents.js - Library Consumer → Feature API: queries features
- Feature API → Feature Index: uses index
data/features.js - Library Consumer → Feature API: expands feature
- Feature API → Feature Records: returns record
data/features.js - Library Consumer → Region API: requests region
- Region API → Regional Records: returns usage