DEV Community

BJ Cantlupe
BJ Cantlupe

Posted on

1 2

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay