Description
Extensive aliases and autocompletion for npm commands, significantly reducing typing and improving package management productivity.
GitHub
Essential Commands
npmg
→npm i -g
- Install packages globallynpmS
→npm i -S
- Install and save to dependenciesnpmD
→npm i -D
- Install and save to devDependenciesnpmst
→npm start
- Start the projectnpmt
→npm test
- Run testsnpmR
→npm run
- Run npm scripts
Advanced Commands
npmO
→npm outdated
- Check for outdated packagesnpmU
→npm update
- Update all packagesnpmL
→npm list
- List installed packagesnpmL0
→npm ls --depth=0
- List top-level packages onlynpmrd
→npm run dev
- Run development scriptnpmrb
→npm run build
- Run build script
Usage Examples
# Package installation
npmS express # Install express and save
npmD nodemon # Install as dev dependency
npmg typescript # Install globally
# Project management
npmst # Start application
npmt # Run tests
npmrd # Start dev server
# Maintenance
npmO # Check outdated packages
npmU # Update all packages