Download Latest Version 5.4.0 source code.zip (1.0 MB) Google Add to Preferred Sources
Home / v5.4.0
Name Modified Size InfoDownloads / Week
Parent folder
5.4.0 source code.tar.gz 2026-10-18 885.7 kB
5.4.0 source code.zip 2026-10-18 1.0 MB
README.md 2026-10-18 926 Bytes
Totals: 3 Items   1.9 MB 4

Added

  • Custom pretty placeholders — pretty.placeholders: { token: (meta, pretty) => string | number } registers your own {{token}}s for pretty.template, styled through pretty.styles like the built-in ones, so a composite value such as HH:mm:ss.SSS is colored as one unit. Only tokens the template references are evaluated; a throwing callback renders empty and never drops the log; built-in names are reserved; sub-loggers inherit the parent's map. Meta template only — error templates and JSON output are unchanged. Thanks @clayzx.
  • pretty.styles key validation — a misspelled style key (styles: { logLevelNmae }) now warns in development with a did-you-mean, or throws TslogConfigError (UNKNOWN_PRETTY_STYLE) under strictConfig, since IPrettyLogStyles accepts any key to allow styling custom placeholders.

https://github.com/fullstack-build/tslog/compare/v5.2.0...v5.4.0

Source: README.md, updated 2026-10-18