Boilerplate to kickstart creating a node module
Also with a boilerplate for creating a CLI.
This is what I use for my own modules.
In your directory, run:
$ curl -fsSL https://github.com/sindresorhus/node-module-boilerplate/archive/master.tar.gz | tar -xz --strip-components=2 node-module-boilerplate-master/boilerplate
Or if you want to create a CLI:
$ curl -fsSL https://github.com/sindresorhus/node-module-boilerplate/archive/master.tar.gz | tar -xz --strip-components=2 node-module-boilerplate-master/cli-boilerplate
Alternatively you can git clone
or download this repo and get contents of the boilerplate
or cli-boilerplate
folder.
There's also a Yeoman generator.
MIT © Sindre Sorhus