User Tools

Site Tools


tips_and_tricks:npm

npm

If you have dozens of build targets in your package.json you may wish to use autocompletion. Setting it up turns out to be extremely easy. Just use something like

npm completion >> $HOME/.bashrc

or

npm completion >> $HOME/.zshrc

I do not know if this works on native Windows but then again, I am not responsible for you developing under Windows without using WSL.

A bit more on this npm feature: https://docs.npmjs.com/cli-commands/completion.html

tips_and_tricks/npm.txt · Last modified: 2020/10/16 10:04 by jupp