Created
April 14, 2023 17:16
-
-
Save jziggas/59d3d2b8de3c13f00d671818bd3f5942 to your computer and use it in GitHub Desktop.
Get a flattened list of all nested dependencies inside an NPM based repository
This file contains hidden or 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
npm ls -all -parseable true | grep -oP '^.*\/\K.*$' | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't include version numbers. Getting version numbers requires using
npm ls -json true
and using scripting to flatten