Created
December 9, 2014 12:25
-
-
Save techgaun/87740f3566e37527ccd2 to your computer and use it in GitHub Desktop.
Check security vulnerabilities of node module you are using
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 | |
| #go inside your node_modules folder and run this script | |
| for module in *; | |
| do | |
| version=$(grep '"version":' $module/package.json | cut -d"\"" -f4); | |
| echo "testing $module-v$version"; | |
| curl "https://nodesecurity.io/validate/$module/$version"; | |
| echo ""; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment