# @complyify/debug

> Complyify's debug extensions

Latest version **1.1.1** (published 2019-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @complyify/debug
pnpm add @complyify/debug
yarn add @complyify/debug
bun add @complyify/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.1 |
| Published | 2019-12-04 |
| First published | 2017-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sean Bruton |
| Maintainers | fuqua, ggquinones, itwalton, jonno317, mitchellgsides, sbruton |

## Links

- npm: https://www.npmjs.com/package/@complyify/debug
- Repository: https://github.com/complyify/debug
- Homepage: https://github.com/complyify/debug#readme
- Issues: https://github.com/complyify/debug/issues
- npm.io page: https://npm.io/package/@complyify/debug

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^2.6.1
- [bitwise](https://npm.io/package/bitwise.md) ^0.2.0

## Recent versions

- 1.1.1 (latest) — 2019-12-04
- 1.1.0 — 2017-05-24
- 1.0.5 — 2017-04-12
- 1.0.4 — 2017-04-12
- 1.0.3 — 2017-03-23
- 1.0.2 — 2017-03-23
- 1.0.1 — 2017-03-11
- 1.0.0 — 2017-03-11

## README

# @complyify/debug

Drop in replacement for [debug] that adds some additional formatter extensions described below.

## Installation

`npm install @complyify/debug`

## Formatters

`%b` bit array from a number or a buffer

```js
import Debug from '@complyify/debug';
const debug = Debug('test:app');
const buffer = new Buffer(1);
buffer.fill(0);
const byte = 0b10101010;
debug('some buffer as a bit array: %b', buffer);
debug('some number as a bit array: %b', byte);
```

results in debug output

```shell
  test:app some buffer as a bit array: 0,0,0,0,0,0,0,0
  test:app some buffer as a bit array: 1,0,1,0,1,0,1,0
```

`%h` hex string from a number or a buffer

```js
import Debug from '@complyify/debug';
const debug = Debug('test:app');
const buffer = new Buffer(1);
buffer.fill(0);
const byte = 0b10101010;
debug('some buffer as a hex string: %h', buffer);
debug('some number as a hex string: %h', byte);
```

results in debug output

```shell
  test:app some buffer as a hex string: 0x00
  test:app some buffer as a hex string: 0xAA
```

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

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