iserror: Error Object Type Check
JSON →The `iserror` package, currently at version `0.0.2`, provides a lightweight utility function designed to determine if a given JavaScript value is an `Error` object. Released several years ago, it offers a simple, cross-environment solution for both Node.js and browser environments, as indicated by its keywords. Unlike Node.js's built-in `util.isError` (which has been deprecated since Node.js 10 and eventually removed), `iserror` functions as a standalone CommonJS module. Its primary differentiator is its singular focus on this specific type-checking task without introducing additional dependencies, providing a basic `require` interface for quick integration into projects that prefer a dedicated utility over direct `instanceof Error` checks or more complex custom type-guarding logic. Its release cadence appears to be minimal, reflecting a stable but largely unmaintained state since its initial publication.
Traffic · last 30 days ↑100% vs prev 7d
top countries 🇺🇸 United States · 🇺🇦 Ukraine · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany