@ianwalter/print
v8.1.0
Published
Colorful Node.js logging
Downloads
368
Maintainers
Readme
@ianwalter/print
Colorful Node.js logging
Installation
pnpm add @ianwalter/print
Usage
Basic usage:
const { print } = require('@ianwalter/print')
print.info('Done in 0.91s.') // => 💁 Done in 0.91s.
Using debug / namespacing:
export DEBUG="app.*"
const { createPrint } = require('@ianwalter/print')
const print = createPrint({ level: 'info' })
// Will not be printed:
print.debug('Hello!')
// Will be printed:
print.ns('app.test').debug('Flaky test started.') // => 🐛 Flaky test started.
License
Hippocratic License - See LICENSE
Created by Ian Walter