Description
npm install package-name
const package = require('package-name');
package.method();
- Fork this repo and rename it as necessary.
- Update
package.json
with details for your new package. - Place code in
./lib
. - Place tests in
./test
. - Replace this
./README.md
file with your own that describes how to use your module.
.
├── README.md # this file
├── lib # all code for this library will be placed here
│ └── index.spec.js # main entry point for your npm package
├── index.spec.js
├── package.json # description of this package for npm, including dependency lists
└── test # unit test configuration, reports, and specs
└── lib.spec.js # example spec for `./lib/index.spec.js`