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.


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


npm tes


npm whoam


# --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)