Last active
March 5, 2024 01:24
-
-
Save yyx990803/6045243 to your computer and use it in GitHub Desktop.
npm list only top level modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ng="npm list -g --depth=0 2>/dev/null" | |
alias nl="npm list --depth=0 2>/dev/null" |
Why does the --depth option not appear in
npm -h
nornpm list -h
? Is this an hidden option?
I tried looking for it too. I think it's just undocumented.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why does the --depth option not appear in
npm -h
nornpm list -h
? Is this an hidden option?