{"id":20235673,"url":"https://github.com/browserslist/caniuse-lite","last_synced_at":"2025-05-13T17:05:16.964Z","repository":{"id":37389749,"uuid":"80221890","full_name":"browserslist/caniuse-lite","owner":"browserslist","description":"A smaller version of caniuse-db, with only the essentials!","archived":false,"fork":false,"pushed_at":"2025-05-13T05:48:08.000Z","size":72214,"stargazers_count":578,"open_issues_count":6,"forks_count":77,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-13T06:32:20.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserslist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"browserslist","tidelift":"npm/caniuse-lite","github":"ai"}},"created_at":"2017-01-27T16:02:08.000Z","updated_at":"2025-05-13T06:12:16.000Z","dependencies_parsed_at":"2022-07-14T08:49:40.841Z","dependency_job_id":"ed36adfa-feb4-4432-838e-cd624070a24e","html_url":"https://github.com/browserslist/caniuse-lite","commit_stats":{"total_commits":1617,"total_committers":15,"mean_commits":107.8,"dds":0.5330859616573902,"last_synced_commit":"c525df1c0533e175e342ebfa2f0ea8e503aaab84"},"previous_names":["ben-eb/caniuse-lite"],"tags_count":864,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserslist%2Fcaniuse-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserslist%2Fcaniuse-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserslist%2Fcaniuse-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserslist%2Fcaniuse-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserslist","download_url":"https://codeload.github.com/browserslist/caniuse-lite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990460,"owners_count":21995774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T08:17:13.609Z","updated_at":"2025-05-13T17:05:16.941Z","avatar_url":"https://github.com/browserslist.png","language":"JavaScript","funding_links":["https://opencollective.com/browserslist","https://tidelift.com/funding/github/npm/caniuse-lite","https://github.com/sponsors/ai","https://tidelift.com/security"],"categories":["JavaScript","Projects using BCD"],"sub_categories":["VSCode extension for contributors"],"readme":"# caniuse-lite\n\nA smaller version of caniuse-db, with only the essentials!\n\n## Why?\n\nThe full data behind [Can I use][1] is incredibly useful for any front end\ndeveloper, and on the website all of the details from the database are displayed\nto the user. However in automated tools, [many of these fields go unused][2];\nit's not a problem for server side consumption but client side, the less\nJavaScript that we send to the end user the better.\n\ncaniuse-lite then, is a smaller dataset that keeps essential parts of the data\nin a compact format. It does this in multiple ways, such as converting `null`\narray entries into empty strings, representing support data as an integer rather\nthan a string, and using base62 references instead of longer human-readable\nkeys.\n\nThis packed data is then reassembled (via functions exposed by this module) into\na larger format which is mostly compatible with caniuse-db, and so it can be\nused as an almost drop-in replacement for caniuse-db for contexts where size on\ndisk is important; for example, usage in web browsers. The API differences are\nvery small and are detailed in the section below.\n\n\n## API\n\n```js\nimport * as lite from 'caniuse-lite';\n```\n\n\n### `lite.agents`\n\ncaniuse-db provides a full `data.json` file which contains all of the features\ndata. Instead of this large file, caniuse-lite provides this data subset\ninstead, which has the `browser`, `prefix`, `prefix_exceptions`, `usage_global`\nand `versions` keys from the original.\n\nIn addition, the subset contains the `release_date` key with release dates (as timestamps) for each version:\n```json\n{\n  \"release_date\": {\n    \"6\": 998870400,\n    \"7\": 1161129600,\n    \"8\": 1237420800,\n    \"9\": 1300060800,\n    \"10\": 1346716800,\n    \"11\": 1381968000,\n    \"5.5\": 962323200\n  }\n}\n```\n\n\n### `lite.feature(js)`\n\nThe `feature` method takes a file from `data/features` and converts it into\nsomething that more closely represents the `caniuse-db` format. Note that only\nthe `title`, `stats`, `status`, and `shown` keys are kept from the original data.\n\n\n### `lite.features`\n\nThe `features` index is provided as a way to query all of the features that\nare listed in the `caniuse-db` dataset. Note that you will need to use the\n`feature` method on values from this index to get a human-readable format.\n\n\n### `lite.region(js)`\n\nThe `region` method takes a file from `data/regions` and converts it into\nsomething that more closely represents the `caniuse-db` format. Note that *only*\nthe usage data is exposed here (the `data` key in the original files).\n\n\n## License\n\nThe data in this repo is available for use under a CC BY 4.0 license\n(http://creativecommons.org/licenses/by/4.0/). For attribution just mention\nsomewhere that the source is caniuse.com. If you have any questions about using\nthe data for your project please contact me here: http://a.deveria.com/contact\n\n[1]: http://caniuse.com/\n[2]: https://github.com/Fyrd/caniuse/issues/1827\n\n\n## Security contact information\n\nTo report a security vulnerability, please use the\n[Tidelift security contact](https://tidelift.com/security).\nTidelift will coordinate the fix and disclosure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserslist%2Fcaniuse-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserslist%2Fcaniuse-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserslist%2Fcaniuse-lite/lists"}