lurq

npm package

Home

tiny-invariant

tiny-invariant is a lightweight invariant function that throws an error if a given condition is falsy. It is useful for type narrowing in TypeScript and Flow, ensuring that certain conditions are met in your code. This package is ideal for applications that require simple assertions without the overhead of more complex libraries.

lurq health score
46/100
Confidence
unproven
Weekly downloads
60,262,833
Latest version
1.3.3
Last release
Feb 23, 2024
License
MIT

Should you depend on tiny-invariant?

lurq's verdict: low

  • No known advisories

Check this from your coding agent

This page is a daily snapshot. lurq's verify tool checks tiny-invariant at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:

npx lurqrun

Free to start. Quickstart

Upgrading tiny-invariant

What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.

Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 16, 2026; this page refreshes every 168 hours. Source repository.