Modern Errors

Typescript error library

Visit website ↗

Profile updated

Console’s review

· Reviewed by David Mytton

What we like

Library to provide structured errors in JS/TS. Set props on errors with typed fields. Wrap, aggregate, normalize errors. Core library provides base functionality which can be extended via plugins. Official plugins for specialist cases: CLI (colorized, pretty print, verbosity levels), HTTP (structured HTTP responses), clean stack traces, and others. Open source.

Tradeoffs

JS/TS only. Be sure to configure TS to output ES modules, not CommonJS.

Is Modern Errors a fit?

Based on Console’s review published on 2023-02-02.

Who it’s for

Developers using JS/TS should consider this tool for error handling

Why consider it

It provides structured errors with typed fields

Keep in mind

It is limited to JS/TS only

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects Console’s assessment at publication on 2023-02-02. Features and limitations may have changed since the review date. Read our selection criteria and learn about Console.

Key facts

What it is

JavaScript library for consistent error handling.

Source ↗Checked

Company or maintainer

ehmicky and contributors.

Source ↗Checked

Source and licensing

Free and open source, MIT.

Source ↗Checked

Tech stack

Runs on
  • Node.js
Integrates with
  • JavaScript
  • TypeScript

Checked

Source and notes

JavaScript error library provides strict TypeScript declarations and supports Node.js.

View research source ↗

Coverage may be incomplete. “Written in” describes implementation, not supported project languages.

Pricing

Free and open source (MIT). No paid hosted plan was verified from the cited repository; self-hosting infrastructure costs are separate.

Pricing source ↗Checked

Also consider

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.