A minimal CLI and programmatic log formatter for Pino, providing color-coded, compact output with optional emoji icons, timestamps, and web request/response stats. Current stable version is 2.2.0. It differs from alternatives like pino-colada by offering extensibility via a filter function, full control over output elements, and TypeScript type declarations. Designed for development use, it outputs log level, message, and optional HTTP request info while stripping other metadata.
npm install pino-tinyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up pino with the pino-tiny prettifier, logging an info and an error message.
For Pino v7+, use pino-tiny as a CLI pipe or check compatibility; programmatic usage may require Pino v6.
Use pino-tiny via piping (`node app.js | pino-tiny`) or use pino-pretty with a custom transport.
Use require() instead of import. If using ES modules, use createRequire or pipe method.
Ensure filter returns either an object (modified data) or false to drop the entry.
If absolute timestamps are needed, consider using pino-pretty or another formatter.
Run npm install -D pino-tiny (dev) or npm install pino-tiny (production).
Use: const { PinoTinyPrettifier } = require('pino-tiny') then pass to new Pino({ prettifier: PinoTinyPrettifier(options) })Pass an options object: PinoTinyPrettifier({ filter: (data) => data })Replace import with require() or set type: 'module' in package.json and use correct ESM setup.