Skip to content

Instantly share code, notes, and snippets.

@stevemao
Forked from yyx990803/nl.sh
Created November 9, 2017 03:23
Show Gist options
  • Save stevemao/64ef8cfd3051c786689725339db864c3 to your computer and use it in GitHub Desktop.
Save stevemao/64ef8cfd3051c786689725339db864c3 to your computer and use it in GitHub Desktop.
npm list only top level modules.
alias ng="npm list -g --depth=0 2>/dev/null"
alias nl="npm list --depth=0 2>/dev/null"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment