Skip to content

Instantly share code, notes, and snippets.

@emilbayes
Forked from soldair/readonly.sh
Created September 19, 2017 12:41
Show Gist options
  • Save emilbayes/16cb819667f0a5ae424886c3809d67de to your computer and use it in GitHub Desktop.
Save emilbayes/16cb819667f0a5ae424886c3809d67de to your computer and use it in GitHub Desktop.
make a read only npm token
curl -sLi -X PUT -H 'content-type: application/json' -d '{"name": "USERNAME", "token": true, "password": "PASSWORD", "readonly": true, "email": "EMAIL"}' 'https://registry.npmjs.org/-/user/org.couchdb.user:USERNAME'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment