@vyriy/error
v0.3.9
Published
Shared error utilities for Vyriy projects
Downloads
2,574
Readme
@vyriy/error
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/errorWith Yarn:
yarn add @vyriy/errorUsage
import { toError } from '@vyriy/error';
try {
await runTask();
} catch (error) {
throw toError(error);
}