check-error is a tiny utility for asserting that a value is an Error object. Lightweight and fast, it helps ensure your code handles error conditions correctly by providing a simple function that definitively identifies if a given variable is an instance of the JavaScript Error class or a subclass thereof. Useful for validating error responses and simplifying error handling logic.
The npm package check-error had an initial release in June 2016 with 3 versions. From July 2016 to June 2023, releases were infrequent. There was a small burst of activity from July 2023 to May 2024 (4 releases) of new versions. No releases have occurred since May 2024.
The check-error npm package saw a massive surge in downloads starting in March 2024. Downloads remained high throughout the year, peaking in November 2024. 2025 continued with strong download numbers, reaching a high in June 2025 before decreasing significantly in the partial month of August 2025.