mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
21 lines
495 B
JavaScript
21 lines
495 B
JavaScript
const chalk = require('chalk');
|
|
const printer = {
|
|
debug: msg => {
|
|
const result = chalk.green`debug` + chalk.white(' - ' + msg);
|
|
console.log(result);
|
|
return result;
|
|
},
|
|
info: msg => {
|
|
const result = chalk.rgb(19, 167, 205)`info` + chalk.white(' - ' + msg);
|
|
console.log(result);
|
|
return result;
|
|
},
|
|
warn: msg => {
|
|
const result = chalk.yellow`warn` + chalk.white(' - ' + msg);
|
|
console.log(result);
|
|
return result;
|
|
},
|
|
};
|
|
|
|
module.exports = { printer };
|