# micro-debug

> micro debugging utility

Latest version **1.1.0** (published 2016-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install micro-debug
pnpm add micro-debug
yarn add micro-debug
bun add micro-debug
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2016-06-03 |
| First published | 2016-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mklabs |
| Maintainers | mklabs |
| Keywords | log, debug |

## Links

- npm: https://www.npmjs.com/package/micro-debug
- Repository: https://github.com/mklabs/micro-debug
- Homepage: https://mkla.bz/micro-debug/
- Issues: https://github.com/mklabs/micro-debug/issues
- npm.io page: https://npm.io/package/micro-debug

## 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

- 1.1.0 (latest) — 2016-06-03
- 1.0.0 — 2016-06-03

## README

# micro-debug

`console.error` wrapper that replicates [debug][] output.

[debug]: https://github.com/visionmedia/debug

## Install

    $ npm install debug -S

## Usage

```js
const debug = require('micro-debug')('test:install');

debug('Define %s suite', 'foo');
setTimeout(() => {
  debug('done');
}, 200);
```

Output

```
test:install Define foo suite 0ms
test:install done 203ms
```

## Options

Configuration is done via environment variables:

- `DEBUG_PREFIX` - default namespace when not provided (`require('micro-debug')()`)
- `DEBUG_STREAM` - output stream. If it is a String, will attempt to open a new
  WriteStream and use it to redirect log output (default: `process.stderr`)

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