Skip to content

Instantly share code, notes, and snippets.

@dekadentno
Created February 7, 2019 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dekadentno/02eff87c00f95d68b535146562826646 to your computer and use it in GitHub Desktop.
Save dekadentno/02eff87c00f95d68b535146562826646 to your computer and use it in GitHub Desktop.
Multiple packages unpublish from npm
# usage:
# chmod 700 bulkUnpublish.sh
# ./bulkUnpublish.sh axios vuex moment
npm set registry "http://xxx.xxx.xxx.xxx"
for var in "$@"
do
echo "Unpublishing: $var"
npm unpublish --force "$var"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment