Skip to content

Instantly share code, notes, and snippets.

@shaoshing
Created June 12, 2014 20:20
Show Gist options
  • Save shaoshing/5b835655b06f1aff33b2 to your computer and use it in GitHub Desktop.
Save shaoshing/5b835655b06f1aff33b2 to your computer and use it in GitHub Desktop.
Publish your package to npmjs.org
# 1
# register an user at npmjs.org
# 2
npm adduser
# 3
cd /path/to/your/package
# package.json doc https://www.npmjs.org/doc/json.html
# example: https://github.com/chriso/validator.js/blob/master/package.json
npm init #
npm publish ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment