UNPKG

@handfish/hygen

Version:

The scalable code generator that saves you time.

26 lines 570 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chalk = require('chalk'); const { yellow, red, green, magenta, template } = chalk; class Logger { constructor(log) { this.log = log; } colorful(msg) { this.log(template(chalk, msg)); } notice(msg) { this.log(magenta(msg)); } warn(msg) { this.log(yellow(msg)); } err(msg) { this.log(red(msg)); } ok(msg) { this.log(green(msg)); } } exports.default = Logger; //# sourceMappingURL=logger.js.map