# deassertify

> browserify transform that comment out assert line from your code

Latest version **0.2.0** (published 2022-06-25) · MIT license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2022-06-25 |
| First published | 2016-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Etienne Rossignon |
| Maintainers | erossignon |
| Keywords | browserify, browserify-transform |

## Links

- npm: https://www.npmjs.com/package/deassertify
- npm.io page: https://npm.io/package/deassertify

## Dependencies (3)

- [falafel](https://npm.io/package/falafel.md) ^2.2.5
- [minimist](https://npm.io/package/minimist.md) ^1.2.6
- [through2](https://npm.io/package/through2.md) ^4.0.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2022-06-25
- 0.1.2 — 2016-11-20

## README

# Deassertify

  Browserify transform to comment assert statements out of your code.



For example.js:

```javascript
function foo(a) {
  assert(a >= 0, " expecting a positive number");
  return Math.sqrt(a);
}
```

then on the command line:

     browserify -t deassertify example.js > bundle.js

You can also pass in the argument `nobundle` to prevent the assert package
from being added to your bundle.

     browserify -t [deassertify --nobundle] example.js > bundle.js

or with the api:

```javascript
var browserify = require("browserify")
 , fs = require("fs")

var b = browserify("example.js")
b.transform("deassertify")

b.bundle().pipe(fs.createWriteStream("bundle.js"))
```

the bundle file output is:

```javascript
function foo(a) {
  //-- assert(a >= 0, " expecting a positive number");
  return Math.sqrt(a);
}
```

Licence: MIT

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