Last active
August 8, 2017 02:14
-
-
Save peabnuts123/c64c2a9e621826b544757569744073f2 to your computer and use it in GitHub Desktop.
Search `node_modules/` for any dependencies that have `preinstall`, `install` or `postinstall` hooks
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
| #!/bin/bash | |
| find node_modules/ -iname "package.json" -exec grep '"preinstall"\|"install"\|"postinstall"' {} \; -exec echo 'From: {}' \; -exec echo \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment