Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

ianwalter/print

Repository files navigation

@ianwalter/print

Colorful Node.js logging

npm page CI

Deprecated

Use @generates/logger instead.

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