# debugged

> Lightweight wrapper for the debug module

Latest version **0.1.0** (published 2017-07-24) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2017-07-24 |
| First published | 2017-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alasdair Mercer |
| Maintainers | neocotic |
| Keywords | debug, log, debugger, debugged, wrapper |

## Links

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

## 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.1.0 (latest) — 2017-07-24

## README

8888888b.           888                                               888
    888  "Y88b          888                                               888
    888    888          888                                               888
    888    888  .d88b.  88888b.  888  888  .d88b.   .d88b.   .d88b.   .d88888
    888    888 d8P  Y8b 888 "88b 888  888 d88P"88b d88P"88b d8P  Y8b d88" 888
    888    888 88888888 888  888 888  888 888  888 888  888 88888888 888  888
    888  .d88P Y8b.     888 d88P Y88b 888 Y88b 888 Y88b 888 Y8b.     Y88b 888
    8888888P"   "Y8888  88888P"   "Y88888  "Y88888  "Y88888  "Y8888   "Y88888
                                               888      888
                                          Y8b d88P Y8b d88P
                                           "Y88P"   "Y88P"

[Debugged](https://github.com/NotNinja/debugged) is a lightweight wrapper for the
[debug](https://www.npmjs.com/package/debug) module.

[![Build Status](https://img.shields.io/travis/NotNinja/debugged/develop.svg?style=flat-square)](https://travis-ci.org/NotNinja/debugged)
[![Peer Dependency Status](https://img.shields.io/david/peer/NotNinja/debugged.svg?style=flat-square)](https://david-dm.org/NotNinja/debugged?type=peer)
[![Dev Dependency Status](https://img.shields.io/david/dev/NotNinja/debugged.svg?style=flat-square)](https://david-dm.org/NotNinja/debugged?type=dev)
[![License](https://img.shields.io/npm/l/debugged.svg?style=flat-square)](https://github.com/NotNinja/debugged/blob/master/LICENSE.md)
[![Release](https://img.shields.io/npm/v/debugged.svg?style=flat-square)](https://www.npmjs.com/package/debugged)

* [Install](#install)
* [API](#api)
* [Bugs](#bugs)
* [Contributors](#contributors)
* [License](#license)

## Install

Install using `npm`:

``` bash
$ npm install --save debugged
```

You'll need to have at least [Node.js](https://nodejs.org) 4 or newer and `debug@^2` is required as a peer dependency.

## API

The API is really just a wrapper around the [debug](https://www.npmjs.com/package/debug) module that follows an
Object-oriented Programming (OOP) pattern. The main purpose of it is not really for the API design, but for a shared
bucket of debug instances per namespace whose enabled status is automatically refreshed.

The only real difference is how you create debug instances and how you log messages:

``` javascript
const Debugged = require('debugged');

const debug = Debugged.create('app');
debug === Debugged.create('app');
//=> true
debug === Debugged.create('app:example');
//=> false

debug.log('Started %d', process.uptime());

debug.enabled;
//=> false

Debugged.enable('app');

debug.enabled;
//=> true

Debugged.disable();

debug.enabled;
//=> false
```

## Bugs

If you have any problems with Debugged or would like to see changes currently in development you can do so
[here](https://github.com/NotNinja/debugged/issues).

## Contributors

If you want to contribute, you're a legend! Information on how you can do so can be found in
[CONTRIBUTING.md](https://github.com/NotNinja/debugged/blob/master/CONTRIBUTING.md). We want your suggestions and pull
requests!

A list of Debugged contributors can be found in
[AUTHORS.md](https://github.com/NotNinja/debugged/blob/master/AUTHORS.md).

## License

See [LICENSE.md](https://github.com/NotNinja/debugged/raw/master/LICENSE.md) for more information on our MIT license.

[![Copyright !ninja](https://cdn.rawgit.com/NotNinja/branding/master/assets/copyright/base/not-ninja-copyright-186x25.png)](https://not.ninja)

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