Skip to content

miette

Fancy upgrade to console.log — annotated, source-aware error diagnostics for TypeScript. Zero runtime dependencies. Works in Node and the browser.

Annotated source

Highlight spans of the offending code with labels, in a familiar Rust-style report. No more decoding a stack trace to find the column.

Zero dependencies

A few hundred lines of TypeScript. No transitive tree to audit. Drops cleanly into any project.

Cause chains

ES2022 Error.cause is walked and rendered automatically. Wrap your errors however deep — the whole story prints.

Node and browser

Pure string output. Pipe it into process.stderr, an HTML <pre>, an xterm.js session — whatever you have.

Released under the Apache 2.0 License.