Created
September 27, 2018 19:05
-
-
Save andrewmiller1/e241c93fc116651ce731c4888aa4b90a to your computer and use it in GitHub Desktop.
`npm ls`, but useful for the common programmatic case
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
#!/bin/sh | |
npm ls --depth 0 --parseable 2> /dev/null | grep -oP --color=never '(?<=node_modules/).*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment