https://github.com/hughsk/bistre
A command-line tool and module for printing colourful bole logs.
https://github.com/hughsk/bistre
Last synced: 3 months ago
JSON representation
A command-line tool and module for printing colourful bole logs.
- Host: GitHub
- URL: https://github.com/hughsk/bistre
- Owner: hughsk
- License: other
- Created: 2014-05-20T12:45:37.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T02:49:19.000Z (over 6 years ago)
- Last Synced: 2024-10-17T16:39:58.139Z (8 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 48
- Watchers: 3
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# bistre [](http://github.com/badges/stability-badges)
A command-line tool and module for printing colourful
[bole](http://github.com/rvagg/bole) logs.## Usage
[](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-delimited 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)
```
## See Also
- [bole](https://github.com/rvagg/bole)
- [debug-to-json](https://github.com/yoshuawuyts/debug-to-json)## License
MIT. See [LICENSE.md](http://github.com/hughsk/bistre/blob/master/LICENSE.md) for details.