@vyriy/error

Part of Vyriy - a calm architecture toolkit for TypeScript, React, SSR, SSG, APIs, and cloud-ready apps.

Shared error utilities for Vyriy projects.

Purpose

This package provides small helpers for normalizing unknown caught or rejected values before logging or rethrowing them.

Install

With npm:

npm install @vyriy/error

With Yarn:

yarn add @vyriy/error

Usage

import { toError } from '@vyriy/error';

try {
  await runTask();
} catch (error) {
  throw toError(error);
}