walking-log
v1.0.0
Published
A light-weight consola: A simple console.log only for printing messages in Node.js with colors, time, time diff and emojis. I use it in CLI app usually
Maintainers
Readme
A 🎈 light-weight substitution of consola. consola is great but it's too heavy for my needs.
walking-log is a colorful yet minimal console log for Node.js only.
就是一个 Node.js 控制台彩色 console.log 而已,不涉及浏览器,仅为 Node.js CLI 提供纯粹、简单的信息输出。
🦋 Features
0 dependencies, just one file with 120 LOC 🤏. It's a drop-in replacement for consola.
Copy or install however you like.
零依赖,仅 120 行代码的单文件。可当做 consola 的轻量级替代品。复制或安装随意。
👣 Quick Start
npm install walking-logimport { createLogger } from 'walking-log'
const logger = createLogger({ verbose: true })
logger.debug("I'm not the good guy anymore.")
logger.info("We are the walking dead.")
logger.warn("If you don't fight, you die.")
logger.success("We survive this by pulling together, not apart.")
logger.error("I didn't ask for this. I killed my best friend for you people.")