changelog
Version:
Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo.
26 lines (19 loc) • 423 B
JavaScript
;
var chalk = require('chalk');
var showDebugMessages;
function debug(message) {
if (showDebugMessages) {
console.info(chalk.green('changelog'), message);
}
}
function error(message) {
console.error(chalk.red('changelog'), message);
}
function enableDebug(bool) {
showDebugMessages = bool;
}
module.exports = {
debug: debug,
error: error,
enableDebug: enableDebug
};