Skip to content

Instantly share code, notes, and snippets.

View pgangwani's full-sized avatar
🎯
Focusing

Pawan Gangwani pgangwani

🎯
Focusing
View GitHub Profile
@pgangwani
pgangwani / my-first-module.md
Created August 1, 2016 02:10 — forked from tmpvar/my-first-module.md
how to create your very first node.js module and publish it to the npm registry

building your first node module

This is pretty simple, lets dive in!

choose a name

Find a name that isn't taken and clearly describes what your module is doing

$ npm view your-first-node-module
@pgangwani
pgangwani / readme.md
Created August 1, 2016 02:10 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser