Examples (4)
Enable tab-completion for the current shell session
Add completion to the shell profile (Bash)
npm completion >> ~/.bashrcAdd completion to the shell profile (Zsh)
npm completion >> ~/.zshrcWrite completions script to a specific file
npm completion > path/to/filemade by @shridhargupta | data from tldr-pages