https://github.com/flex-development/estree-util-unassert
estree (and esast) utility to remove assertions
https://github.com/flex-development/estree-util-unassert
esast esast-util estree estree-util js unassert unist
Last synced: 10 months ago
JSON representation
estree (and esast) utility to remove assertions
- Host: GitHub
- URL: https://github.com/flex-development/estree-util-unassert
- Owner: flex-development
- License: bsd-3-clause
- Created: 2024-02-23T06:11:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T14:25:03.000Z (over 1 year ago)
- Last Synced: 2025-01-09T05:45:32.743Z (11 months ago)
- Topics: esast, esast-util, estree, estree-util, js, unassert, unist
- Language: TypeScript
- Homepage: https://github.com/flex-development/estree-util-unassert
- Size: 1.71 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/funding.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# estree-util-unassert
[](https://github.com/flex-development/estree-util-unassert/releases/latest)
[](https://npmjs.com/package/@flex-development/estree-util-unassert)
[](https://codecov.io/gh/flex-development/estree-util-unassert)
[](https://github.com/voxpelli/badges-cjs-esm)
[](LICENSE.md)
[](https://conventionalcommits.org/)
[](https://typescriptlang.org/)
[](https://vitest.dev/)
[](https://yarnpkg.com/)
[estree][estree] (and [esast][esast]) utility to remove [assertions][assertion]
## Contents
- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)
- [API](#api)
- [Types](#types)
- [Contribute](#contribute)
## What is this?
This package is a utility that replaces and removes assertions in JavaScript syntax trees.
## When should I use this?
**TODO**: when should i use this?
## Install
This package is [ESM only][esm].
In Node.js (version 18+) with [yarn][yarn]:
```sh
yarn add @flex-development/estree-util-unassert
```
See Git - Protocols | Yarn
for details regarding installing from Git.
In Deno with [`esm.sh`][esmsh]:
```ts
import { unassert } from 'https://esm.sh/@flex-development/estree-util-unassert'
```
In browsers with [`esm.sh`][esmsh]:
```html
import { unassert } from 'https://esm.sh/@flex-development/estree-util-unassert'
```
## Use
**TODO**: use
## API
**TODO**: api
## Types
This package is fully typed with [TypeScript][typescript].
## Contribute
See [`CONTRIBUTING.md`](CONTRIBUTING.md).
[assertion]: https://en.wikipedia.org/wiki/Assertion_(software_development)
[esast]: https://github.com/syntax-tree/esast
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
[esmsh]: https://esm.sh/
[estree]: https://github.com/estree/estree
[typescript]: https://www.typescriptlang.org
[yarn]: https://yarnpkg.com