Skip to content

Instantly share code, notes, and snippets.

@zeekay
Created December 17, 2012 05:30
Show Gist options
  • Save zeekay/4315983 to your computer and use it in GitHub Desktop.
Save zeekay/4315983 to your computer and use it in GitHub Desktop.
function npm-name-check() {
res="`curl https://npmjs.org/package/$1 -sI | grep 404`"
if [ -z "$res" ]; then
echo awws
else
echo get dat shit
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment