@bramus/caniuse-cli
Command line tool for “Can I Use …” and MDN Browser Compat Data
@mdn/browser-compat-data
.# npm install -g @bramus/caniuse-cli
$ caniuse viewport-units
$ caniuse "viewport units"
$ caniuse @property
In zsh:
echo '. <(caniuse --completion)' >> ~/.zshrc
In bash:
caniuse --completion >> ~/.caniuse.completion.sh
echo 'source ~/.caniuse.completion.sh' >> ~/.bashrc
In fish:
echo 'caniuse --completion-fish | source' >> ~/.config/fish/config.fish
That's all!
Now you have an autocompletion system.
bash-completion
packagebash: _get_comp_words_by_ref: command not found
bash: __ltrim_colon_completions: command not found
bash: _get_comp_words_by_ref: command not found
bash: __ltrim_colon_completions: command not found
Solution: install bash-completion
package
@bramus/caniuse-cli
is released under the MIT public license. See the enclosed LICENSE
for details.
This project is built on the original https://github.com/dsenkus/caniuse-cli/