A minimalistic ndjson formatter for pino. Theme highly inspired (almost 1:1) by Golang logger called logrus. This package wouldn't have happened if not for pino-colada. Props.
First, install prettifier as a dev-dependency in your project (works with npm
and pnpm
, probably with yarn
too).
npm i -D pino-pretty-min
then, pipe your pino-enabled application's output to the prettifier, or even better, make it a npm-script:
"scripts": {
"start": "node ./bin.js | pino-pretty-min",
}
npm install pino-pretty-min
- CC0 (~Public Domain)