Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 721 Bytes

File metadata and controls

21 lines (14 loc) · 721 Bytes
description Modern alternatives to the debug package

Replacements for debug

obug

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 ++]