DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

BJ Cantlupe
BJ Cantlupe

Posted on

TIL: Lesser-Known NPM Aliases

Anyone who is familiar with the NPM CLI probably knows some shortcuts to the most popular commands. We can use npm i instead of npm install or npm run [cmd] instead of npm run-script [cmd]. But did you know that there are aliases not included in the NPM docs? Try these out.

Install

# yeah...meant to spell it that way
npm isntall

Test

npm tes

Whoami

npm whoam

Publish

# --dry-run just in case you copy/paste
# into a public repo
npm 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)

DEV

Thank you.

Β 
Thanks for visiting DEV, we’ve worked really hard to cultivate this great community and would love to have you join us. If you’d like to create an account, you can sign up here.