Skip to main content
Home

Built and signed on GitHub Actions

A utility that mimics Rust's Result type and adds its own methods such as match.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
94%
Published
5 months ago (1.1.1)

A utility that mimics Rust's Result type and adds its own methods such as match.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@result/result

Import symbol

import * as result from "@result/result";
or

Import directly with a jsr specifier

import * as result from "jsr:@result/result";

Add Package

pnpm i jsr:@result/result
or (using pnpm 10.8 or older)
pnpm dlx jsr add @result/result

Import symbol

import * as result from "@result/result";

Add Package

yarn add jsr:@result/result
or (using Yarn 4.8 or older)
yarn dlx jsr add @result/result

Import symbol

import * as result from "@result/result";

Add Package

vlt install jsr:@result/result

Import symbol

import * as result from "@result/result";

Add Package

npx jsr add @result/result

Import symbol

import * as result from "@result/result";

Add Package

bunx jsr add @result/result

Import symbol

import * as result from "@result/result";