It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
52%
Published
2 months ago (0.0.2)
f
Err.factory
Creates a factory function for generating custom Error types.
f
Err.from
Converts any unknown value into an Error object.
Add Package
deno add jsr:@trav/result
Import symbol
import { Err } from "@trav/result";
---- OR ----
Import directly with a jsr specifier
import { Err } from "jsr:@trav/result";
Add Package
npx jsr add @trav/result
Import symbol
import { Err } from "@trav/result";
Add Package
yarn dlx jsr add @trav/result
Import symbol
import { Err } from "@trav/result";
Add Package
pnpm dlx jsr add @trav/result
Import symbol
import { Err } from "@trav/result";
Add Package
bunx jsr add @trav/result
Import symbol
import { Err } from "@trav/result";