console-stamp is a Node.js module that patches the built-in `console` logging methods to add a configurable prefix such as timestamps and log levels. It is useful for producing consistent, patterned log output (including optional colored formatting) by passing the `console` object and a format/options configuration.
Project status
- Actively maintained (most recent upstream push and tag activity is 2026-02-18, which is within 6 months of today, 2026-08-12).
- Apparent update cadence is irregular, with a long gap between 2023-10-19 and the next known update in 2026-02-18, then no further evidence of updates after that date.
AI summary generated
Recent updates
v4.0.0-rc.4
The v4.0.0-rc.4 release is a major rewrite of console-stamp with a TypeScript, ESM-oriented codebase and a new token system implementation. No publisher release notes were provided for this version, so the only reliable description of what changed comes from the code diff itself (and repository documentation added in the diff).
v3.1.2
Release v3.1.2 contains no published release notes. The code diff shows a small example output change and, more importantly, a behavior change in lib/utils.js related to how console-stamp generates colored prefixes and how it handles errors during token and color-group processing.
v3.1.1
Release v3.1.1 was published on 2023-02-12, but the publisher did not include any release notes. No documented new features, breaking changes, bug fixes, security updates, or dependency changes were provided in the release description.
v3.1.0
Version 3.1.0 (2022-11-10) is described as adding worker support, but the release notes are extremely minimal. The code diff shows a broader refactor of console patching behavior, new type definitions, and changes to how token modules (notably label) are exported.
BreakingFeaturesv3.0.4
Release 3.0.4 has no provided release notes. The code changes are small but include a TypeScript definition adjustment for console output streams and a new `default` export property on the CommonJS module, plus dependency bumps.
v3.0.0
Release 3.0.0 is described in notes as a total rewrite that introduces a token system to customize and extend console-stamped output. The provided notes are high-level and do not mention other operational changes such as Node.js support or dependency updates.
Featuresv3.0.0-rc4.3
Release notes for v3.0.0-rc4.3 were not provided, so there is no documented changelog to compare against. The code diff shows multiple behavioral changes around console patching, especially message handling and console.table behavior, along with dependency and engine upgrades.
v3.0.0-rc4.1
console-stamp v3.0.0-rc4.1 appears to be a major rewrite of the library. The patching mechanism now uses token-based prefix generation (for example :date, :label, :msg) with Proxy-wrapped console methods, and introduces a new reset lifecycle for undoing patches.
BreakingFeaturesv0.2.9
Release v0.2.9 includes packaging and build/CI related changes, plus runtime behavior changes in how the library patches Node's console methods. Notably, it adds an npm postinstall hook that logs an installation warning message.
v0.2.6
Version 0.2.6 adds configurable prefix and suffix strings for both the date stamp and the log label, and updates the README with improved examples and formatting. The implementation change is localized to how the console output prefix is constructed in main.js.
Featuresv0.2.5
Version 0.2.5 introduces support for extending console logging by allowing custom methods to be mapped to log levels. The implementation adds an `options.extend` object that modifies the internal log level priorities used to decide which console methods are patched/formatted.
Featuresv0.2.4
Version 0.2.4 adds support for routing console-stamp output to custom stdout and stderr streams. The implementation introduces new options (options.stdout, options.stderr) and uses them when writing the timestamp prefix, rather than always writing to process.stdout/process.stderr.
Features