</>PackageGraphPackageGraph

debug

npmv4.4.3

Lightweight debugging utility for Node.js and the browser

Safe to adopt

Yes — debug scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 361 days ago. 3 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 361 days ago. 3 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 48 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • 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 debug to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

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

48 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing debug, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=6.0
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the debug README.

var debug = require('debug')('http')
  , http = require('http')
  , name = 'My App';

// fake app

debug('booting %o', name);

http.createServer(function(req, res){
  debug(req.method + ' ' + req.url);
  res.end('hello\n');
}).listen(3000, function(){
  debug('listening');
});
Example truncated — see the full README.

debug vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
debugthis page046MIT1 year ago
callsites136.7M1MIT1 day ago
why-is-node-running01MIT1 day ago
convert-source-map07MIT1 day ago
@open-draft/logger01MIT1 day ago
loglevel02MIT1 day ago

Dependencies

Declared by debug v4.4.3. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (1)

Dev (11)

brfs ^2.0.1browserify ^16.2.3coveralls ^3.0.2karma ^3.1.4karma-browserify ^6.0.0karma-chrome-launcher ^2.2.0karma-mocha ^1.3.0mocha ^5.2.0mocha-lcov-reporter ^1.2.0sinon ^14.0.0xo ^0.23.0

Used by

Popular packages that depend on debug.

https-proxy-agentnpm

An HTTP(s) proxy `http.Agent` implementation for HTTPS

225.1M/wk10 dependentsMIT
eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
finalhandlernpm

Node.js final http responder

132.1M/wk3 dependentsMIT
sendnpm

Better streaming static file server with Range and conditional-GET support

127.6M/wk3 dependentsMIT
body-parsernpm

Node.js body parsing middleware

97.1M/wk5 dependentsMIT
expressnpm

Fast, unopinionated, minimalist web framework

92.8M/wk17 dependentsMIT
obugnpm

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

61.1M/wk8 dependentsMITTS
routernpm

Simple middleware-style router

59.4M/wk1 dependentsMIT
istanbul-lib-source-mapsnpm

Source maps support for istanbul

55.8M/wk5 dependentsBSD-3-Clause
@mswjs/interceptorsnpm

Low-level network interception library for Node.js.

20.3M/wk1 dependentsMITTS
lighthouse-loggernpm

A shared logging utility class for lighthouse and friends.

16.8M/wk2 dependentsApache-2.0TS
socket.ionpm

node.js realtime framework server

16.2M/wk1 dependentsMITTS
@expo/config-pluginsnpm

A library for Expo config plugins

0/wk5 dependentsMITTS
@expo/clinpm

The Expo CLI

0/wk2 dependentsMIT
babel-preset-exponpm

The Babel preset for Expo projects

0/wk1 dependentsMITTS
@expo/fingerprintnpm

A library to generate a fingerprint from a React Native project

0/wk2 dependentsMITTS
@react-native/community-cli-pluginnpm

Core CLI commands for React Native

0/wk1 dependentsMIT
express-rate-limitnpm

Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.

0/wk2 dependentsMITTS
@expo/envnpm

hydrate environment variables from .env files into process.env

0/wk4 dependentsMITTS
@expo/router-servernpm

Expo Router is a file-based router for React Native and web applications.

0/wk1 dependentsMITTS
@react-native/dev-middlewarenpm

Dev server middleware for React Native

0/wk2 dependentsMIT
@expo/ws-tunnelnpm

No description provided.

0/wk1 dependentsMIT
connectnpm

High performance middleware framework

0/wk7 dependentsMIT
@expo/metro-file-mapnpm

A metro-file-map fork for Expo used with the Metro bundler

0/wk1 dependentsMITTS

Relationship graph

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

Frequently installed together

Release history

3 releases in the last two years, typically about 61 days apart.

Recent versions of debug
VersionPublishedSizeLicense
4.4.3latest1 year ago42 KBMIT
4.4.11 year ago42 KBMIT
4.4.01 year ago42 KBMIT
4.3.72 years ago41 KBMIT
4.3.62 years ago41 KBMIT
4.3.52 years ago41 KBMIT
4.3.44 years ago41 KBMIT
4.3.34 years ago41 KBMIT
4.3.25 years ago40 KBMIT
3.2.75 years ago52 KBMIT
4.3.15 years ago40 KBMIT
4.3.06 years ago40 KBMIT
4.2.06 years ago39 KBMIT
4.1.17 years ago80 KBMIT
3.2.68 years ago78 KBMIT

Overview

debug is an npm package that lightweight debugging utility for Node.js and the browser. It has 46 known dependents in the graph. The latest version is 4.4.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need lightweight debugging utility for Node.js and the browser and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

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

Maintainers

Keywords

Frequently asked questions

Should I use debug?

Yes — debug scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 361 days ago. 3 releases in the last 2 years.

How do I install debug?

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

How many dependencies does debug have?

debug declares 12 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 48 KB on disk.

What license is debug released under?

debug is distributed under the MIT license.

How popular is debug?

npm does not publish download counts. Within PackageGraph's crawl, 46 known packages depend on debug.

Is debug still maintained?

The most recent release of debug (v4.4.3) was published 1 year ago.

Does debug run install scripts?

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