https://github.com/fpapado/query-caniuse
A CLI to query browserslist data, and output it on the terminal.
https://github.com/fpapado/query-caniuse
Last synced: over 1 year ago
JSON representation
A CLI to query browserslist data, and output it on the terminal.
- Host: GitHub
- URL: https://github.com/fpapado/query-caniuse
- Owner: fpapado
- License: mit
- Created: 2023-09-25T12:14:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-25T13:00:30.000Z (over 2 years ago)
- Last Synced: 2025-02-10T01:47:14.860Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# query-caniuse
A little CLI to query caniuse-db data, and output it on the terminal.
Useful if you want to quickly copy-paste these values, e.g. in a spreadsheet or a chat.
Data is queried locally, via [caniuse-db](npm.im/caniuse-db).
NOTE: Some data might be missing, for example data coming from MDN (usually prefixed `mdn-api` on caniuse, such as https://caniuse.com/mdn-api_url_canparse_static)
Usage (you will need node an pnpm):
```shell
pnpm install
# You can use either a caniuse URL or the feature name
# Output is tsv by default, which you can copy into a spreadsheet
node query.mjs query css-focus-visible
node query.mjs query https://caniuse.com/css-focus-visible
# table output option
node query.mjs query https://caniuse.com/css-focus-visible --format table
```