UNPKG

xlf-common

Version:

Command-line tool for extracting common trans-units from XLF files

22 lines (20 loc) 502 B
const chalk = require('chalk'); module.exports = { quietMode: false, info: function(msg) { if (!this.quietMode) { console.log('[INFO]', msg); } }, warn: function(msg) { if (!this.quietMode) { console.log(chalk.yellow('[WARN] ' + msg)); } }, error: function(msg) { console.log(chalk.bold.red('[ERR] ' + msg)); }, success: function(msg) { console.log(chalk.bold.green('[SUCCESS] ' + msg)); } };