Created
February 7, 2019 09:44
-
-
Save dekadentno/02eff87c00f95d68b535146562826646 to your computer and use it in GitHub Desktop.
Multiple packages unpublish from npm
This file contains 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
# 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