winston-console-formatter is a Winston transport formatter that outputs logs in a YAML-like style with colored levels, type-colored meta objects, and optional stack traces. Version 1.0.0-beta.3, last updated in 2016. No release cadence; appears to be a beta package with no further updates. Key differentiators: provides configurable colors, types via yamlify-object, and supports label, from, and stack props for enriched log lines. Designed specifically for Winston 2.x (old Logger API).
npm install winston-console-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Winston logger with YAML-like console output using winston-console-formatter.
Use winston@2.x. For winston 3.x, consider winston.format.combine with custom format.
Consider alternatives like winston's built-in console transport or fork the package.
Use destructuring: const { formatter, timestamp } = wcf();Provide custom colors or set colors: false.
Create a custom .d.ts file or use with @ts-ignore.
Run npm install winston-console-formatter
Use const wcf = require('winston-console-formatter');Install winston@2.x or use winston.format.combine with custom format for Winston 3.
Ensure require('winston') is called before using winston.transports.Console.