Tidelift is working with the maintainers of deassert and a growing network of open source maintainers
to ensure your open source software supply chain meets enterprise standards now and into the future.
Learn more.
Installation
# Install with npmnpm install -D deassert# Install with pnpmpnpm add -D deassert# Install with yarnyarn add -D deassert# Install with bunbun add -D deassert
Usage
API
import deassert from "deassert";const result = deassert(code, options);console.log(result.code);
Options
modules
An array of modules to be considered assert modules.
These modules will be what is stripped out.