# @augment-vir/assert

> A collection of assertions for test and production code alike.

Latest version **32.3.0** (published 2026-09-12) · (MIT OR CC0-1.0) license · 0 weekly downloads

## Install

```sh
npm install @augment-vir/assert
pnpm add @augment-vir/assert
yarn add @augment-vir/assert
bun add @augment-vir/assert
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 32.3.0 |
| Published | 2026-09-12 |
| First published | 2024-08-27 |
| Weekly downloads | 0 |
| License | (MIT OR CC0-1.0) |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | electrovir |
| Maintainers | electrovir |
| Keywords | augment, helper, util, node, browser, backend, frontend, assert, test, chai, vir, augment-vir |

## Links

- npm: https://www.npmjs.com/package/@augment-vir/assert
- Repository: https://github.com/electrovir/augment-vir
- Issues: https://github.com/electrovir/augment-vir/issues
- npm.io page: https://npm.io/package/@augment-vir/assert

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 32.3.0 (latest) — 2026-09-12
- 32.3.0-beta.0 (beta) — 2026-09-07
- 30.0.2 (next) — 2024-09-10
- 32.2.4 — 2026-09-01
- 32.2.3 — 2026-08-20
- 32.2.2 — 2026-08-13
- 32.2.1 — 2026-07-27
- 32.2.0 — 2026-07-27
- 32.1.0 — 2026-07-10
- 31.73.5 — 2026-07-01
- 32.0.0 — 2026-07-01
- 31.73.4 — 2026-07-01
- 31.73.3 — 2026-07-01
- 31.73.2 — 2026-06-17
- 31.73.1 — 2026-06-12
- … 156 more at https://npm.io/package/@augment-vir/assert/versions

## README

# @augment-vir/assert

A collection of assertions for test and production code alike. These main exports are the following:

-   [`assert`](https://electrovir.github.io/augment-vir/functions/assert.html): a collection of assertion methods with type guards when possible. Example: [`assert.isDefined()`](https://electrovir.github.io/augment-vir/functions/assert.html#isDefined)
-   [`check`](https://electrovir.github.io/augment-vir/functions/check.html): a collection of boolean check methods with type guards when possible. Example: [`check.isBoolean()`](https://electrovir.github.io/augment-vir/functions/check.html#isBoolean)
-   [`assertWrap`](https://electrovir.github.io/augment-vir/functions/assertWrap.html): a collection of assertions that return the asserted value if the assertion passes. Examples [`assertWrap.isArray()`](https://electrovir.github.io/augment-vir/functions/assertWrap.html#isArray)
-   [`checkWrap`](https://electrovir.github.io/augment-vir/functions/checkWrap.html): a collection of checks that return the checked value if it passes or `undefined`. Example: [`checkWrap.isInfinite()`](https://electrovir.github.io/augment-vir/functions/checkWrap.html#isInfinite)
-   [`waitUntil`](https://electrovir.github.io/augment-vir/functions/waitUntil.html): a collection of assertion methods that try to wait until the assertion becomes true. Example: [`waitUntil.isTruthy()`](https://electrovir.github.io/augment-vir/functions/waitUntil.html#isTruthy)

See the docs under `Assert`, or `Package: @augment-vir/assert` here: https://electrovir.github.io/augment-vir

---
_Source: https://npm.io/package/@augment-vir/assert · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
