<!-- SPDX-License-Identifier: CC0-1.0 -->

# strip-assertions

Strip debug assertions from JavaScript code.

## Install

```shell
npm install strip-assertions
```

## Usage

### CLI

```shell
strip-assertions file-1.js file-2.js
```

### API

```javascript
import { stripAssertions } from "strip-assertions";

stripAssertions(`
  import assert from "assert";
  let arr = [1, 2, 3];
  assert(arr.length > 0);
`);
//=> "let arr = [1, 2, 3];"
```

## Related

- [strip-comments-js]
- [strip-directives]

[strip-comments-js]: https://www.npmjs.com/package/strip-comments-js
[strip-directives]: https://www.npmjs.com/package/strip-directives

## License

The source code is licensed under the `Apache-2.0` license, see [LICENSE] for
the full license text.

[license]: ./LICENSE
