Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bistre

hughsk3.1kMIT1.0.1

A command-line tool and module for printing colourful bole logs.

bole, log, pretty, print, ansi, cli, tool, colors

readme

bistre experimental

A command-line tool and module for printing colourful bole logs.

Usage

NPM

Install globally to use as a command-line tool:

npm install -g bistre

Simply pipe your bole output into the command-line tool, e.g.:

node server.js | bistre

Install locally to use as a module:

stream = bistre()

Creates a transform stream that takes line-delimted JSON logs as input and outputs ANSI-highlighted logs for you.

var bole = require('bole')
var pretty = require('bistre')()

bole.output({
    level: 'info'
  , stream: pretty
})

pretty.pipe(process.stdout)

bistre

See Also

License

MIT. See LICENSE.md for details.