From 16c2f3fe507ff8a8fd005ef68d594f12480c3395 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Mon, 11 Jan 2016 05:58:14 +0100 Subject: [PATCH] Added list alias for npm plugin Added the alias npmL for listing installed packages at root level (not showing sub-dependencies). It also works with the global -g option. --- plugins/npm/npm.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index 3f6fe0fb3..c0ab7baef 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -17,3 +17,6 @@ alias npmD="npm i -D " # Execute command from node_modules folder based on current directory # i.e npmE gulp alias npmE='PATH="$(npm bin)":"$PATH"' + +# List all packages installed at root level +alias npmL='npm ls --depth=0'