ts-log

JSON →
library 3.0.2 ·javascript
verified Jun 4, 2026

ts-log provides a minimal TypeScript Logger interface and a no-op dummyLogger that implements it, allowing libraries to accept a logger dependency without forcing one. Version 3.0.2 (latest stable) requires Node >=20 and ships both ESM and CJS modules. It has zero runtime dependencies and is designed to be compatible with console, pino, bunyan, winston, and any object matching the five-method shape (trace, debug, info, warn, error). Releases are infrequent but stable, focused on maintaining the minimal API. Key differentiator: lightweight, typed, and library-friendly with no overhead.