# @vandeurenglenn/debug

> > easy debug

Latest version **1.4.0** (published 2025-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vandeurenglenn/debug
pnpm add @vandeurenglenn/debug
yarn add @vandeurenglenn/debug
bun add @vandeurenglenn/debug
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2025-12-21 |
| First published | 2022-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | vandeurenglenn |

## Links

- npm: https://www.npmjs.com/package/@vandeurenglenn/debug
- npm.io page: https://npm.io/package/@vandeurenglenn/debug

## Recent versions

- 1.4.0 (latest) — 2025-12-21
- 1.3.0 — 2025-12-21
- 1.2.8 — 2025-12-21
- 1.2.7 — 2025-11-29
- 1.2.6 — 2025-05-11
- 1.2.5 — 2024-07-12
- 1.2.4 — 2024-05-10
- 1.2.3 — 2024-03-09
- 1.2.2 — 2024-02-09
- 1.2.1 — 2024-01-30
- 1.2.0 — 2024-01-14
- 1.1.1 — 2024-01-12
- 1.1.0 — 2024-01-11
- 1.0.0 — 2022-04-25

## README

# @vandeurenglenn/debug

> easy debug

## install

```sh
npm i -S @vandeurenglenn/debug
```

## usage

### basic

 ```js
import { setTargets, createDebugger } from '@vandeurenglenn/debug'

setTargets(['myLib']) // or true to enable all
const debug = createDebugger('target')
debug('text')
 ```

### plugins

#### local-storage

On a browser you can import this plugin and use localStorage to set the targets.

  ```js
import { setTargets, createDebugger } from '@vandeurenglenn/debug'
import '@vandeurenglenn/debug/local-storage.js'

const debug = createDebugger('my-module')
debug('text')
 ```

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