caniuse-rs 0.1.3

A command line client for caniuse.com, written in Rust.
caniuse-rs-0.1.3 is not a library.

caniuse-rs

A Rust client for caniuse.com.

demo

It pulls data from caniuse.com and caches it locally, in a transformed JSON structure that is easier to reason about. It will update data on next run after 24 hours since last update. Fuzzy finder is built using skim.

Install

To install, run cargo install caniuse-rs. The installed binary is named caniuse.

Alfred Workflow

You can use this as an Alfred workflow on MacOS by downloading the *.alfredworkflow file from the latest release and double-clicking the file from Finder once downloaded.

Usage

Run caniuse by itself to open the fuzzy finder, then enter a search query to fuzzy find what you're looking for. Pressing enter will open the selected item. If no items match, pressing enter will search for the query you've typed by opening https://caniuse.com/?search={query}.

Options

To dump the data instead of fuzzy finding, you can run caniuse --dump which will simply output the currently cached JSON data that is being used. To pretty-print it, you can run caniuse --dump --pretty.

To force update the cached data, you can run caniuse --update.