# @guanghechen/invariant

> A simple invariant function

Latest version **7.0.4** (published 2026-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @guanghechen/invariant
pnpm add @guanghechen/invariant
yarn add @guanghechen/invariant
bun add @guanghechen/invariant
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.0.4 |
| Published | 2026-09-12 |
| First published | 2021-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | guanghechen |
| Maintainers | lemonclown |

## Links

- npm: https://www.npmjs.com/package/@guanghechen/invariant
- Repository: https://github.com/guanghechen/sora/tree/@guanghechen/invariant@7.0.4
- Homepage: https://github.com/guanghechen/sora/tree/@guanghechen/invariant@7.0.4/packages/invariant#readme
- npm.io page: https://npm.io/package/@guanghechen/invariant

## Recent versions

- 7.0.4 (latest) — 2026-09-12
- 7.0.3 — 2026-07-10
- 7.0.2 — 2026-02-15
- 7.0.1 — 2026-02-07
- 7.0.0 — 2026-02-04
- 6.0.5 — 2025-02-26
- 6.0.4 — 2024-10-03
- 6.0.3 — 2024-09-28
- 6.0.2 — 2024-09-25
- 6.0.1 — 2024-09-20
- 6.0.0-alpha.1 — 2023-12-04
- 6.0.0-alpha.0 — 2023-11-18
- 5.0.9 — 2023-10-18
- 5.0.8 — 2023-10-04
- 5.0.7 — 2023-09-07
- … 87 more at https://npm.io/package/@guanghechen/invariant/versions

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