# undebugify

> Browserify transform that removes configurable debug statements from a release build (e.g. asserts and tracing functions).

Latest version **0.1.0** (published 2015-10-23) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2015-10-23 |
| First published | 2015-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | John Vilk |
| Maintainers | jvilk |

## Links

- npm: https://www.npmjs.com/package/undebugify
- Repository: https://github.com/jvilk/undebugify
- Homepage: https://github.com/jvilk/undebugify#readme
- Issues: https://github.com/jvilk/undebugify/issues
- npm.io page: https://npm.io/package/undebugify

## Dependencies (1)

- [browserify-transform-tools](https://npm.io/package/browserify-transform-tools.md) ^1.5.0

## Recent versions

- 0.1.0 (latest) — 2015-10-23

## README

# undebugify v0.1.0
> Browserify transform that removes configurable debug statements from a release build (e.g. asserts and tracing functions).

## Usage

Undebugify takes only a single configuration item: an array of function names.
Undebugify will remove all invocations of those functions from the code.

```{js}
// Example: Remove all instances of assert() and debugPrint() from code.
b.transform('undebugify', {
  remove: ['assert', 'debugPrint']
});
```

## Limitations

Undebugify is limited to matching function call statements by name, and thus
does not support functions invoked on objects (e.g. you could not remove `console.log`).

I can augment undebugify to support these scenarios if there is demand; just open an issue in the issue tracker.

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