npm package
Homeassertion-error
AssertionError is a module that provides two classes, AssertionError and AssertionResult, for handling assertion failures in test and validation frameworks. It allows functions to return a standardized error or result, making it easier to manage outcomes in testing scenarios. This package is particularly useful for developers creating custom validation logic or testing frameworks.
- lurq health score
- 59/100
- Confidence
- proven
- Weekly downloads
- 97,924,497
- Latest version
- 2.0.1
- Last release
- Aug 25, 2025
- License
- MIT
Should you depend on assertion-error?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks assertion-error 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
Other validation packages lurq scores
- fast-xml-parser93/100 · proven
- @babel/helper-validator-identifier91/100 · proven
- @babel/helper-validator-option91/100 · proven
- dependency-cruiser88/100 · proven
- @graphql-tools/schema87/100 · proven
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 4, 2026; this page refreshes every 24 hours. Source repository.