# varmint

Latest version **0.6.4** (published 2026-10-25) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install varmint
pnpm add varmint
yarn add varmint
bun add varmint
```

Provides the command `varmint`.

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.6.4 |
| Published | 2026-10-25 |
| First published | 2024-04-22 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 166.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Jeremy Banka |
| Maintainers | jeremybanka |

## Links

- npm: https://www.npmjs.com/package/varmint
- Repository: https://github.com/jeremybanka/wayforge
- npm.io page: https://npm.io/package/varmint

## Dependencies (6)

- [diff](https://npm.io/package/diff.md) 9.0.0
- [arktype](https://npm.io/package/arktype.md) 2.2.9
- [comline](https://npm.io/package/comline.md) 0.9.3
- [cachedir](https://npm.io/package/cachedir.md) 2.4.0
- [safedeposit](https://npm.io/package/safedeposit.md) 0.1.3
- [fastest-levenshtein](https://npm.io/package/fastest-levenshtein.md) 1.0.16

## Recent versions

- 0.6.4 (latest) — 2026-10-25
- 0.6.3 — 2026-10-24
- 0.6.2 — 2026-10-23
- 0.6.1 — 2026-10-07
- 0.6.0 — 2026-09-28
- 0.5.31 — 2026-09-18
- 0.5.30 — 2026-09-15
- 0.5.29 — 2026-09-14
- 0.5.28 — 2026-09-14
- 0.5.27 — 2026-09-14
- 0.5.26 — 2026-09-12
- 0.5.25 — 2026-09-12
- 0.5.24 — 2026-09-10
- 0.5.23 — 2026-09-02
- 0.5.22 — 2026-09-01
- … 51 more at https://npm.io/package/varmint/versions

## README

<!-- Generated from README.mdx. Run pnpm readme:write to update. -->

# varmint

<a aria-label="NPM version" href="https://www.npmjs.com/package/varmint"><img alt="NPM Version" src="https://img.shields.io/npm/v/varmint?style=for-the-badge"></a>

```sh
npm i varmint
```

varmint is way to create automatic mocks for your tests by wrapping asynchronous functions in a caching layer.

## Bundle size

Package export sizes include complete runtime export surfaces.

Sizes are exact minified and level-9 gzip JavaScript byte counts. Declarations, source maps, CSS, and other assets are excluded. Peer dependencies stay external, and shared modules are counted once per bundle.

| Import    | Minified JS | Gzip JS |
| --------- | ----------: | ------: |
| `varmint` |    26,462 B | 9,002 B |

Report maintained with [tonnage](https://github.com/jeremybanka/tonnage).

## CLI completion and warnings

With `varmint` installed on PATH, run `varmint completion install bash` to install Bash completion. Replace `bash` with `zsh`, `fish`, `nushell`, or `carapace` for the other supported integrations. Installation uses the shell's existing completion setup and does not edit shell profiles; open a new shell afterward. `varmint completion bash` prints the integration for manual installation. See [Comline's shell setup requirements](../comline/README.md#shell-integrations).

Completion suggests `track`, `clean`, and their option names. `varmint clean --ci-flag=` suggests `CI`, while the option continues to accept any environment-variable name. Once supplied, `--ci-flag` disappears from further suggestions. Completion works without reading configuration or starting tracking, uploading fixtures, or cleaning files.

After successful parsing, Varmint warns on stderr about unknown options and options that do not apply to the selected command. Warnings appear before workspace actions and do not change the command's exit status.

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