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!

Discussion (0)