@@ -27,3 +27,27 @@ Add `antigen bundle trystan2k/zsh-npm-plugin` into `.zshrc`
2727### Using [ zgen] ( https://github.com/tarjoilija/zgen )
2828
2929Add ` zgen load trystan2k/zsh-npm-plugin ` into ` .zshrc `
30+
31+ ## Aliases
32+
33+ | Alias | Command | Descripton |
34+ | :-------- | :-------------------------- | :-------------------------------------------------------------- |
35+ | ` npmg ` | ` npm i -g ` | Install dependencies globally |
36+ | ` npmi ` | ` npm i ` | Install dependencies locally |
37+ | ` npmS ` | ` npm i -S ` | Install and save to dependencies in your package.json |
38+ | ` npmD ` | ` npm i -D ` | Install and save to dev-dependencies in your package.json |
39+ | ` npmE ` | ` PATH="$(npm bin)":"$PATH" ` | Run command from node_modules folder based on current directory |
40+ | ` npmO ` | ` npm outdated ` | Check which npm modules are outdated |
41+ | ` npmV ` | ` npm -v ` | Check package versions |
42+ | ` npmL ` | ` npm list ` | List installed packages |
43+ | ` npmL0 ` | ` npm ls --depth=0 ` | List top-level installed packages |
44+ | ` npmlsg ` | ` npm list -g ` | List installed packages globally |
45+ | ` npmlsg0 ` | ` npm list -g --depth=0 ` | List top-level installed packages globally |
46+ | ` npmst ` | ` npm start ` | Run npm start |
47+ | ` npmt ` | ` npm test ` | Run npm test |
48+ | ` npmR ` | ` npm run ` | Run npm scripts |
49+ | ` npmP ` | ` npm publish ` | Run npm publish |
50+ | ` npmNew ` | ` npm init ` | Run npm init |
51+ | ` npmclr! ` | ` rm -rf ./node_modules/ ` | Clear node_modules in current directory |
52+ | ` nre! ` | ` npmclr! && npmi ` | Reinstall packages |
53+ | ` npmF ` | ` npm search ` | Search in the npm database |
0 commit comments