ANSI formatter for the Nightingale logging library (v18.1.0). Converts structured log records into colorized, human-readable terminal output using ANSI escape codes. Part of the monorepo maintained by Christophe Hurpeau, released on npm with Node >=22.18.0 requirement. Ships TypeScript types. Compared to other formatters like pino-pretty or winston's cli format, this is tightly coupled to Nightingale's record structure and configuration system.
npm install nightingale-ansi-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Nightingale to use the ANSI formatter for console output, showing colorized log levels and messages.
Upgrade Node.js to v22.18.0 or later, or pin to an older major version of the package.
Use dynamic import() in CJS projects, or switch to ESM.
Replace default import with named import.
Ensure logs are generated via Nightingale createLogger, not manually.
Use import syntax or dynamic import() instead of require().
Use `import { nightingaleAnsiFormatter } from 'nightingale-ansi-formatter'`.Install color-name: `npm install color-name`.