1.0.2 • Published 5 years ago
chlg-cli v1.0.2
chlg-cli
Simple command line interface to edit CHANGELOG files according to keepachangelog.com rules.
Command line usage
- Install
chlg-cli(global installation is recommended for command line usage)
$ npm install --global chlg-cli- Start using the command line interface
$ chlg init
$ chlg add "New awesome feature"
$ chlg release 1.0.0For more informations on command line usage, see the documentation.
Tip for NPM scripts
With a combination of this module and NPM scripts, you can automatically add new releases to the change log.
- First, install
chlg-clias adevDependency
$ npm install --save-dev chlg-cli- Then, add this
versionscript to yourpackage.json
{
...
"scripts": {
...
"version": "chlg release $npm_package_version && git add CHANGELOG.md",
...
},
...
}Now, new releases will be added to the change log every time you use the npm version command.
Programmatic usage
- Install
chlg-cliin your project
$ npm install --save-dev chlg-cli- Start using the API
'use strict';
var chlg = require('chlg-cli');
chlg.init(function (err) {
if (err) {
console.error(err);
} else {
console.log('Changelog initialized');
}
});Documentation
License
See License