Skip to content

Instantly share code, notes, and snippets.

@peabnuts123
Last active August 8, 2017 02:14
Show Gist options
  • Save peabnuts123/c64c2a9e621826b544757569744073f2 to your computer and use it in GitHub Desktop.
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
#!/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