</>PackageGraphPackageGraph

obug

npmv2.1.4TypeScript

A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.

Safe to adopt

Yes — obug scores well across adoption, maintenance, weight, supply chain, and licensing. 61.1M downloads per week and 8 known dependents. Last published 55 days ago. 15 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    61.1M downloads per week and 8 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 55 days ago. 15 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 27 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding obug to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

27 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=12.20.0
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the obug README.

import { createDebug, disable, enable, enabled, namespaces } from 'obug'

// Get the currently enabled namespaces
console.log(namespaces())

const debug = createDebug('my-namespace', {
  // All options are optional

  useColors: true, // false, true, undefined for auto-detect
  color: 2, // custom color
  // custom formatArgs
  formatArgs(args) {},
  formatters: {},
  // Node.js only
Example truncated — see the full README.

Dependencies

Declared by obug v2.1.4. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (16)

@sxzz/eslint-config ^8.2.1@sxzz/prettier-config ^2.3.1@types/debug ^4.1.13@types/node ^26.1.1@typescript/native-preview 7.0.0-dev.20260707.2@vitest/browser-playwright ^4.1.10@vitest/coverage-v8 ^4.1.10bumpp ^11.1.0debug ^4.4.3eslint ^10.7.0playwright ^1.61.1prettier ^3.9.5tsdown ^0.22.9typescript ^6.0.3vite ^8.1.5vitest ^4.1.10

Used by

Popular packages that depend on obug.

Relationship graph

Dependencies (left) and dependents (right) of obug.

Frequently installed together

Release history

15 releases in the last two years, typically about 1 day apart.

Recent versions of obug
VersionPublishedSizeLicense
2.1.4latest1 month ago27 KBMIT
2.1.32 months ago27 KBMIT
2.1.23 months ago26 KBMIT
2.1.19 months ago21 KBMIT
2.1.09 months ago21 KBMIT
1.0.29 months ago21 KBMIT
2.0.09 months ago21 KBMIT
2.0.0-beta.110 months ago20 KBMIT
1.0.010 months ago22 KBMIT
0.1.310 months ago20 KBMIT
0.1.210 months ago20 KBMIT
0.1.110 months ago21 KBMIT
0.1.010 months ago21 KBMIT
0.0.110 months ago17 KBMIT
0.0.010 months ago42 KBMIT

Overview

obug is an npm package that a lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support. It is extremely widely used, with about 61.1M downloads per week and 8 known dependents in the graph. The latest version is 2.1.4, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (61.1M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (16 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Funding

Frequently asked questions

Should I use obug?

Yes — obug scores well across adoption, maintenance, weight, supply chain, and licensing. 61.1M downloads per week and 8 known dependents. Last published 55 days ago. 15 releases in the last 2 years.

How do I install obug?

Run `npm install obug` to add obug to your npm project.

What license is obug released under?

obug is distributed under the MIT license.

How popular is obug?

obug has approximately 61,089,615 downloads per week and 8 known dependent packages.

Is obug still maintained?

The most recent release of obug (v2.1.4) was published 1 month ago.

Does obug run install scripts?

No. obug does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.