Files
mpcfill-pdf/log.js
orion kindel ae5193700a init
2025-11-06 15:16:08 -06:00

16 lines
312 B
JavaScript

import chalk from 'chalk'
const info = msg => {
console.log(chalk.white.bold('[mpcpdf] ') + msg)
}
const debug = msg => {
if (process.env['DEBUG']) console.log(chalk.blue.bold('[mpcpdf] ') + msg)
}
const error = msg => {
console.error(chalk.red.bold('[mpcpdf] ') + msg)
}
export { info, debug, error }