@whr2349/log
v1.0.2
Published
npmlog的二次封装,默认heading为'whr-cli'
Downloads
2
Readme
index
TODO: description
Usage
const log = require('@whr2349/log');
// 日志默认输出级别,判断debug模式,默认info
log.level = process.env.WHR_CLI_LOG_LEVEL || 'info'
// 修改前缀
log.heading = 'whr-cli'
// 添加自定义命令
log.addLevel('success', 2000, {fg: 'green', bold: true})
// TODO: DEMONSTRATE API