@ianwalter/print

Colorful Node.js logging

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@ianwalter/print
1258.1.03 years ago4 years agoMinified + gzip package size for @ianwalter/print in KB

Readme

@ianwalter/print
Colorful Node.js logging

!npm pagenpmImagenpmUrl !CIciImageciUrl

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 LICENSElicenseUrl
 
Created by Ian Walter