npm-completion
Enable or set up tab-completion for npm commands. tldr-pages
On several platforms
Several platforms
Enable tab-completion for the current shell session
npm completionIdentifyAdd completion to the shell profile (Bash)
npm completion >>~/.bashrcIdentifyAdd completion to the shell profile (Zsh)
npm completion >>~/.zshrcIdentifyWrite completions script to a specific file
npm completion >path/to/fileIdentify