Skip to content

dsenkus/caniuse-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caniuse-cli

Command line tool for caniuse database.

caniuse-cli screenshot

Features

  • Uses caniuse-db internally, so results are displayed instantly.
  • Supports tab autocompletion in zsh, bash and fish.

Installation

# npm install -g caniuse-cli

Usage

$ caniuse webrtc

Enable Tab Autocompletion

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.

Possible issues

Missing bash-completion package

bash: _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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages