commands.sh

npm completion

all

Enable or set up tab-completion for npm commands.

More info →

Examples (4)

Enable tab-completion for the current shell session

Add completion to the shell profile (Bash)

npm completion >> ~/.bashrc

Add completion to the shell profile (Zsh)

npm completion >> ~/.zshrc

Write completions script to a specific file

npm completion > path/to/file
made by @shridhargupta | data from tldr-pages