Skip to content

Instantly share code, notes, and snippets.

@techgaun
Created December 9, 2014 12:25
Show Gist options
  • Select an option

  • Save techgaun/87740f3566e37527ccd2 to your computer and use it in GitHub Desktop.

Select an option

Save techgaun/87740f3566e37527ccd2 to your computer and use it in GitHub Desktop.
Check security vulnerabilities of node module you are using
#!/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