
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.
A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.
[!NOTE] obug v1 retains most of the compatibility with debug, but drops support for older browsers and Node.js, making it a drop-in replacement.
The upcoming v2 refactors some API imports and usage for better support of ESM and TypeScript, easier customization, and an even smaller package size.
debugnpm install obug
Please refer to the original debug package for usage instructions.
The obug package is currently a direct fork of the debug package with minimal modifications. The following refactor plan outlines the intended changes to be made in future releases.
import { createDebug, disable, enable, enabled, namespaces } from 'obug'
// Get the currently enabled namespaces
console.log(namespaces())
// createDebug has no extra properties or methods.
const debug = createDebug('my-namespace', {
// All options are optional
useColors: true, // false, true, 'auto'
color: 2, // custom color
// custom formatArgs
formatArgs(args) {},
formatters: {},
// Node.js only
inspectOpts: {},
// custom log
log: console.log,
})
debug('This is a debug message')
console.log(
debug.namespace, // 'my-namespace'
debug.enabled, // Check if enabled
debug.useColors, // true
debug.color, // 2
debug.formatArgs, // custom formatArgs
debug.formatters, // {}
debug.inspectOpts, // {}
debug.log, // implemented log function
)
// Create a sub-namespace, and it will inherit options from the parent debugger
const sub = debug.extend('sub-namespace')
sub('This is a sub-namespace debug message')
console.log(sub.namespace) // 'my-namespace:sub-namespace'
For more details, please refer to the src/types-v2.ts.
As obug is a fork of debug, we would like to acknowledge the original authors:
MIT License © 2025-PRESENT Kevin Deng
The MIT License Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
The MIT License Copyright (c) 2018-2021 Josh Junon
FAQs
A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.
The npm package obug receives a total of 27,504,703 weekly downloads. As such, obug popularity was classified as popular.
We found that obug demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.