cli-docs
v0.0.2
Published
Helper library for reading individual local text files for more scalable CLI documentation.
Downloads
4
Readme
cli-docs
Helper library for reading individual local text files for more scalable CLI documentation.
Installation
npm install cli-docs --save-dev
Usage
In you CLI tool setup the service.
var docs = require('cli-docs')({
suffix: 'txt', // file suffix for your docs
basepath: '../doc' // path to your docs
});
To read a docs file simply provide the name.
docs.read('example', function(err, data) {
console.log(data);
});
Development
npm install
npm link
Running tests
npm test
npm run coverage
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 0.0.1 bleeding edge