estree (and esast) utility to remove assertions
This package is a utility that replaces and removes assertions in JavaScript syntax trees.
TODO: when should i use this?
This package is ESM only.
In Node.js (version 18+) with yarn:
yarn add @flex-development/estree-util-unassert
See Git - Protocols | Yarn for details regarding installing from Git.
In Deno with esm.sh
:
import { unassert } from 'https://esm.sh/@flex-development/estree-util-unassert'
In browsers with esm.sh
:
<script type="module">
import { unassert } from 'https://esm.sh/@flex-development/estree-util-unassert'
</script>
TODO: use
TODO: api
This package is fully typed with TypeScript.
See CONTRIBUTING.md
.