OnoIntroduction
Introduction
Throw better errors with formatted messages, error types, and proper error chaining.
Last updated:
@visulima/ono
Create and throw errors with better formatting, type checking, and error chaining support.
Key Features
- Formatted error messages
- Error type utilities
- Error wrapping/chaining
- TypeScript support
Quick Start
import { ono } from "@visulima/ono";
throw ono("Something went wrong");
throw ono(new Error("Original"), "Additional context");