# inspect-brk

> A small helper to make debugging Node more convenient.

Latest version **0.1.2** (published 2018-02-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install inspect-brk
pnpm add inspect-brk
yarn add inspect-brk
bun add inspect-brk
```

Provides the command `inspect-brk`.

## 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.2 |
| Published | 2018-02-07 |
| First published | 2018-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.9.0 |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Maintainers | donaldpipowitch |
| Keywords | inspect-brk, inspect, debugging, debug |

## Links

- npm: https://www.npmjs.com/package/inspect-brk
- Repository: https://github.com/donaldpipowitch/inspect-brk
- Homepage: https://github.com/donaldpipowitch/inspect-brk#readme
- Issues: https://github.com/donaldpipowitch/inspect-brk/issues
- npm.io page: https://npm.io/package/inspect-brk

## Dependencies (1)

- [find-up](https://npm.io/package/find-up.md) ^2.1.0

## 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.2 (latest) — 2018-02-07

## README

# `inspect-brk` 🔎

> A small helper to make debugging Node more convenient.

## Install

```bash
$ yarn add -D inspect-brk
```

or

```bash
$ npm install --save-dev inspect-brk
```

## Usage

Say you have a project like this one and you want to debug `$ yarn build`:

```json
{
  "name": "cool-example",
  "version": "0.1.0",
  "scripts": {
    "build": "webpack --config webpack.build.js"
  },
  "devDependencies": {
    "webpack": "^3.10.0"
  }
}
```

You would just write this and run `$ yarn debug:build`:

```json
{
  "name": "cool-example",
  "version": "0.1.0",
  "scripts": {
    "build": "webpack --config webpack.build.js",
    "debug:build": "inspect-brk build webpack"
  },
  "devDependencies": {
    "inspect-brk": "^0.1.0",
    "webpack": "^3.10.0"
  }
}
```

This basically turns `"webpack --config webpack.build.js"` into `"node --inspect-brk path/to/node_modules/.bin/webpack --config webpack.build.js"`. You don't need to worry about the concrete path and the params you use. 💕

You can also have a look into this [example](https://github.com/donaldpipowitch/inspect-brk/tree/master/packages/example-webpack-plugin).

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