# tinyspy

> A minimal fork of nanospy, with more features

Latest version **4.0.6** (published 2026-09-04) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.6 |
| Published | 2026-09-04 |
| First published | 2021-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.0.0 |
| Dependencies | 0 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 633 |
| Maintainers | oreanno |
| Keywords | spy, mock, typescript, method |

## Links

- npm: https://www.npmjs.com/package/tinyspy
- Repository: https://github.com/tinylibs/tinyspy
- Homepage: https://github.com/tinylibs/tinyspy#readme
- Issues: https://github.com/tinylibs/tinyspy/issues
- npm.io page: https://npm.io/package/tinyspy

## Recent versions

- 4.0.6 (latest) — 2026-09-04
- 4.0.4 — 2025-09-18
- 4.0.3 — 2025-04-17
- 4.0.2 — 2025-04-02
- 4.0.1 — 2025-04-01
- 4.0.0 — 2025-03-18
- 3.0.2 — 2024-09-09
- 3.0.1 — 2024-09-09
- 3.0.0 — 2024-05-31
- 2.2.1 — 2024-02-08
- 2.2.0 — 2023-10-02
- 2.1.1 — 2023-05-30
- 2.1.0 — 2023-03-23
- 2.0.0 — 2023-03-23
- 1.1.1 — 2023-02-07
- … 36 more at https://npm.io/package/tinyspy/versions

## README

# tinyspy

> minimal fork of nanospy, with more features 🕵🏻‍♂️

A `10KB` package for minimal and easy testing with no dependencies.
This package was created for having a tiny spy library to use in `vitest`, but it can also be used in `jest` and other test environments.

_In case you need more tiny libraries like tinypool or tinyspy, please consider submitting an [RFC](https://github.com/tinylibs/rfcs)_

## Docs
Read full docs **[here](https://github.com/tinylibs/tinyspy#readme)**.

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