@verdaccio/logger-prettify
Version:
logger
17 lines (15 loc) • 465 B
JavaScript
;
var _formatter = require("./formatter");
/*
options eg:
{ messageKey: 'msg', levelFirst: true, prettyStamp: false }
*/
module.exports = function prettyFactory(options) {
// the break line must happens in the prettify component
const breakLike = '\n';
return inputData => {
// FIXME: review colors by default is true
return (0, _formatter.printMessage)(inputData, options, true) + breakLike;
};
};
//# sourceMappingURL=index.js.map