8.1.0 • Published 4 years ago

@ianwalter/print v8.1.0

Weekly downloads
3,088
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

@ianwalter/print

Colorful Node.js logging

npm page CI

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