Anyone who is familiar with theNPM CLI probably knows some shortcuts to the most popular commands. We can usenpm i
instead ofnpm install
ornpm run [cmd]
instead ofnpm run-script [cmd]
. But did you know that there are aliases not included in theNPM docs? Try these out.
Install
# yeah...meant to spell it that waynpm isntall
Test
npm tes
Whoami
npm whoam
Publish
# --dry-run just in case you copy/paste# into a public reponpm pub--dry-run
These aren't all very practical, but it seems like NPM is looking out for those of us who are liberal with spelling. Know of any other lesser-known NPM aliases? Let me know!
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse