# dbug

> debug improvements

Latest version **0.4.2** (published 2014-12-17) · MPLv2.0 license · 0 weekly downloads

## Install

```sh
npm install dbug
pnpm add dbug
yarn add dbug
bun add dbug
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.2 |
| Published | 2014-12-17 |
| First published | 2013-10-22 |
| Weekly downloads | 0 |
| License | MPLv2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Sean McArthur |
| Maintainers | seanmonstar |
| Keywords | debug, dbug, log, logging, console |

## Links

- npm: https://www.npmjs.com/package/dbug
- Repository: https://github.com/seanmonstar/dbug
- Issues: https://github.com/seanmonstar/dbug/issues
- npm.io page: https://npm.io/package/dbug

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.4.2 (latest) — 2014-12-17
- 0.4.1 — 2014-05-26
- 0.4.0 — 2014-05-16
- 0.3.1 — 2014-04-18
- 0.3.0 — 2014-04-18
- 0.2.0 — 2014-02-07
- 0.1.4 — 2014-01-10
- 0.1.3 — 2014-01-10
- 0.1.2 — 2013-11-06
- 0.1.1 — 2013-11-06
- 0.1.0 — 2013-10-23
- 0.0.0 — 2013-10-22

## README

# dbug

[![Build Status](https://travis-ci.org/seanmonstar/dbug.png?branch=master)](https://travis-ci.org/seanmonstar/dbug)
[![NPM version](https://badge.fury.io/js/dbug.png)](http://badge.fury.io/js/dbug)

A drop-in replacement for [debug][], for slightly more utility.

```js
var dbug = require('dbug')('foo:bar');

dbug('just like debug'); // except goes to stdout, not stderr
dbug(new Error('also like debug'));

// additional methods
dbug.info('info');
dbug.warn('warning');
dbug.error('red alert');
```

Just like debug, `dbug` won't do anything unless the `DEBUG` env variable matches the `dbug` logger, but with slightly more lenient matching.

```
DEBUG=*
DEBUG=foo,quux
DEBUG=foo // also acts as foo:*
```

A user script wanting to dynamically enable or disable can do it a
couple ways:

```js
require('dbug').env = 'foo,quux'; // just like ENV var
var foo = require('dbug')('foo');
foo.enabled = true;
```

[debug]: https://npmjs.org/package/debug

---
_Source: https://npm.io/package/dbug · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
