| description | Modern alternatives to the debug package |
|---|
obug is a lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.
obug v1 retains compatibility with debug, but drops support for older browsers and Node.js versions, making it a drop-in replacement.
obug v2 refactors some API imports and usage for better support of ESM and TypeScript, easier customization, and an even smaller package size.
import debug from 'debug' // [!code --]
import { createDebug } from 'obug' // [!code ++]
const logger = debug('name') // [!code --]
const logger = createDebug('name') // [!code ++]