debug
npmv4.4.3Lightweight 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
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');
});debug vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| debugthis page | 0 | 46 | MIT | 1 year ago |
| callsites | 136.7M | 1 | MIT | 1 day ago |
| why-is-node-running | 0 | 1 | MIT | 1 day ago |
| convert-source-map | 0 | 7 | MIT | 1 day ago |
| @open-draft/logger | 0 | 1 | MIT | 1 day ago |
| loglevel | 0 | 2 | MIT | 1 day ago |
Dependencies
Declared by debug v4.4.3. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (11)
Used by
Popular packages that depend on debug.
An HTTP(s) proxy `http.Agent` implementation for HTTPS
An AST-based pattern checker for JavaScript.
Node.js final http responder
Better streaming static file server with Range and conditional-GET support
Node.js body parsing middleware
Fast, unopinionated, minimalist web framework
A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.
Simple middleware-style router
Source maps support for istanbul
Low-level network interception library for Node.js.
A shared logging utility class for lighthouse and friends.
node.js realtime framework server
A library for Expo config plugins
The Expo CLI
The Babel preset for Expo projects
A library to generate a fingerprint from a React Native project
Core CLI commands for React Native
Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.
hydrate environment variables from .env files into process.env
Expo Router is a file-based router for React Native and web applications.
Dev server middleware for React Native
No description provided.
High performance middleware framework
A metro-file-map fork for Expo used with the Metro bundler
Relationship graph
Dependencies (left) and dependents (right) of debug.
Frequently installed together
The Expo SDK
TypeScript definitions for node
TypeScript definitions for debug
The semantic version parser used by npm.
Resolve the path of a module like `require.resolve()` but from a given path
Expo Router is a file-based router for React Native and web applications.
Error overlay for universal Expo apps.
the most correct and second fastest glob implementation in JavaScript
Native navigation primitives for your React Native app.
React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.
Get and typecast environment variables.
Server API for Expo Router projects
Release history
3 releases in the last two years, typically about 61 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.4.3latest | 1 year ago | 42 KB | MIT |
| 4.4.1 | 1 year ago | 42 KB | MIT |
| 4.4.0 | 1 year ago | 42 KB | MIT |
| 4.3.7 | 2 years ago | 41 KB | MIT |
| 4.3.6 | 2 years ago | 41 KB | MIT |
| 4.3.5 | 2 years ago | 41 KB | MIT |
| 4.3.4 | 4 years ago | 41 KB | MIT |
| 4.3.3 | 4 years ago | 41 KB | MIT |
| 4.3.2 | 5 years ago | 40 KB | MIT |
| 3.2.7 | 5 years ago | 52 KB | MIT |
| 4.3.1 | 5 years ago | 40 KB | MIT |
| 4.3.0 | 6 years ago | 40 KB | MIT |
| 4.2.0 | 6 years ago | 39 KB | MIT |
| 4.1.1 | 7 years ago | 80 KB | MIT |
| 3.2.6 | 8 years ago | 78 KB | MIT |
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
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.