From 1cc15ca3c23ba1a2b5236432bc62eb652c98972d Mon Sep 17 00:00:00 2001 From: Mauro Porras <167700+mauroporras@users.noreply.github.com> Date: Sun, 25 Apr 2021 12:02:39 -0500 Subject: feat(npm): add alias for `npm i -f` (#8454) As documented in the README, `npm i -f` forces npm to install the specified packages from a remote package registry, even if local copies exist on disk caches. --- plugins/npm/README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/npm/README.md') diff --git a/plugins/npm/README.md b/plugins/npm/README.md index 0b1a2280f..bc627e56f 100644 --- a/plugins/npm/README.md +++ b/plugins/npm/README.md @@ -15,6 +15,7 @@ plugins=(... npm) | `npmg` | `npm i -g` | Install dependencies globally | | `npmS` | `npm i -S` | Install and save to dependencies in your package.json | | `npmD` | `npm i -D` | Install and save to dev-dependencies in your package.json | +| `npmF` | `npm i -f` | Force install from remote registries ignoring local cache | | `npmE` | `PATH="$(npm bin)":"$PATH"` | Run command from node_modules folder based on current directory | | `npmO` | `npm outdated` | Check which npm modules are outdated | | `npmV` | `npm -v` | Check package versions | -- cgit v1.2.3-70-g09d2 From 32532c149a90eb25710f94d207546501e83c161b Mon Sep 17 00:00:00 2001 From: Petr Rajtslegr Date: Sun, 25 Apr 2021 19:07:25 +0200 Subject: feat(npm): add alias for `npm update` (#9442) --- plugins/npm/README.md | 1 + plugins/npm/npm.plugin.zsh | 3 +++ 2 files changed, 4 insertions(+) (limited to 'plugins/npm/README.md') diff --git a/plugins/npm/README.md b/plugins/npm/README.md index bc627e56f..d6bada38b 100644 --- a/plugins/npm/README.md +++ b/plugins/npm/README.md @@ -18,6 +18,7 @@ plugins=(... npm) | `npmF` | `npm i -f` | Force install from remote registries ignoring local cache | | `npmE` | `PATH="$(npm bin)":"$PATH"` | Run command from node_modules folder based on current directory | | `npmO` | `npm outdated` | Check which npm modules are outdated | +| `npmU` | `npm update` | Update all the packages listed to the latest version | | `npmV` | `npm -v` | Check package versions | | `npmL` | `npm list` | List installed packages | | `npmL0` | `npm ls --depth=0` | List top-level installed packages | diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index 93de9cba3..23f627ccd 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -37,6 +37,9 @@ alias npmE='PATH="$(npm bin)":"$PATH"' # Check which npm modules are outdated alias npmO="npm outdated" +# Update all the packages listed to the latest version +alias npmU="npm update" + # Check package versions alias npmV="npm -v" -- cgit v1.2.3-70-g09d2 From 7ed8888c5bc58827a5b8cf9e8347829613bd3683 Mon Sep 17 00:00:00 2001 From: Sherwin Heydarbeygi Date: Sun, 25 Apr 2021 10:08:51 -0700 Subject: feat(npm): add aliases for `npm search` and `npm info` (#9365) --- plugins/npm/README.md | 2 ++ plugins/npm/npm.plugin.zsh | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'plugins/npm/README.md') diff --git a/plugins/npm/README.md b/plugins/npm/README.md index d6bada38b..47d153619 100644 --- a/plugins/npm/README.md +++ b/plugins/npm/README.md @@ -27,3 +27,5 @@ plugins=(... npm) | `npmR` | `npm run` | Run npm scripts | | `npmP` | `npm publish` | Run npm publish | | `npmI` | `npm init` | Run npm init | +| `npmi` | `npm info` | Run npm info | +| `npmSe` | `npm search` | Run npm search | diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index 23f627ccd..f7d6d3939 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -63,3 +63,9 @@ alias npmP="npm publish" # Run npm init alias npmI="npm init" + +# Run npm info +alias npmi="npm info" + +# Run npm search +alias npmSe="npm search" -- cgit v1.2.3-70-g09d2