| Name | Modified | Size | Downloads / 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 forpretty.template, styled throughpretty.styleslike the built-in ones, so a composite value such asHH:mm:ss.SSSis 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.styleskey validation — a misspelled style key (styles: { logLevelNmae }) now warns in development with a did-you-mean, or throwsTslogConfigError(UNKNOWN_PRETTY_STYLE) understrictConfig, sinceIPrettyLogStylesaccepts any key to allow styling custom placeholders.
https://github.com/fullstack-build/tslog/compare/v5.2.0...v5.4.0