Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

happy-rusty

JiangJie5kGPL-3.01.5.0TypeScript support: included

Porting some excellent design implementations from Rust to JavaScript.

rust, enum, Option, Some, None, Result, Ok, Err

readme

Use Rust features in JavaScript happily

NPM version NPM downloads JSR Version JSR Score Build Status codecov


中文


Supported

Installation

# via pnpm
pnpm add happy-rusty
# or via yarn
yarn add happy-rusty
# or just from npm
npm install --save happy-rusty
# via JSR
jsr add @happy-js/happy-rusty
# for deno
deno add @happy-js/happy-rusty
# for bun
bunx jsr add @happy-js/happy-rusty

then import to your code.

import { Some, None, Ok, Err } from 'happy-rusty';

Enjoy the happiness.

Examples

Docs