strip-assertions
v1.0.3
Published
Strip debug assertions from JavaScript code
Maintainers
Readme
strip-assertions
Strip debug assertions from JavaScript code.
Install
npm install strip-assertionsUsage
CLI
strip-assertions file-1.js file-2.jsAPI
import { stripAssertions } from "strip-assertions";
stripAssertions(`
import assert from "assert";
let arr = [1, 2, 3];
assert(arr.length > 0);
`);
//=> "let arr = [1, 2, 3];"License
The source code is licensed under the Apache-2.0 license, see LICENSE for
the full license text.
