<commit_before># bistre [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

A command-line tool and module for printing colourful
[bole](http://github.com/rvagg/bole) logs.

## Usage

[![NPM](https://nodei.co/npm/bistre.png)](https://nodei.co/npm/bistre/)

Install globally to use as a command-line tool:

``` bash
npm install -g bistre
```

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

``` bash
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.

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

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

pretty.pipe(process.stdout)
```

## License

MIT. See [LICENSE.md](http://github.com/hughsk/bistre/blob/master/LICENSE.md) for details.<commit_msg>add screenshot<commit_after># bistre [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

A command-line tool and module for printing colourful
[bole](http://github.com/rvagg/bole) logs.

## Usage

[![NPM](https://nodei.co/npm/bistre.png)](https://nodei.co/npm/bistre/)

Install globally to use as a command-line tool:

``` bash
npm install -g bistre
```

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

``` bash
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.

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

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

pretty.pipe(process.stdout)
```

![bistre](http://imgur.com/SP38CCK.png)

## License

MIT. See [LICENSE.md](http://github.com/hughsk/bistre/blob/master/LICENSE.md) for details.
{'fraction_non_alphanumeric': 0.15675403225806453, 'fraction_numerical': 0.0010080645161290322, 'mean_word_length': 4.37940379403794, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2688450', 'n_tokens_mistral': 729, 'n_tokens_neox': 682, 'n_words': 175}