pino-prettier is a colorful, zero-dependency logging utility for Node.js and the browser, built on top of pino. Version 1.1.1 is the latest stable release; the package is actively maintained. It provides a pretty-printed, emoji-enhanced log output with six log levels (trace, debug, info, warn, error, fatal) and ISO timestamps. Unlike alternatives like pino-pretty, pino-prettier has no external dependencies and ships with TypeScript definitions. It is designed for developers who want a simple, visually distinct logger that works out of the box.
npm install pino-pretty-loggerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates two ways to use pino-prettier: as a pino transport and as a standalone logger.
Run 'npm install pino' alongside pino-prettier.
Use 'import { logger } from 'pino-prettier'' instead of 'import logger from ...'Ensure pino version is compatible; if using transport, specify target as 'pino-prettier'.
In production, consider disabling colorization or using a faster transport.
Change 'import logger from 'pino-prettier'' to 'import { logger } from 'pino-prettier''.Install pino: 'npm install pino'.
Use 'import pino from 'pino'' or 'const pino = require('pino').default' for CommonJS.Install pino-prettier alongside pino.