vitalics / rslike

Rust-like but for TypeScript/JavaScript

Home Page:https://www.npmjs.com/search?q=%40rslike

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

status

Rust Like

Make Javascript without undefined behavior. Forget about try/catch/finally

Reason to use rslike

  1. Less undefined behavior, when using Option and Result.
  2. Well tested. 100% test coverage
  3. JSDoc with examples.
  4. Typescript ready - d.ts types are generated with tsc.
  5. first-class CJS and ESM support.
  6. Zero dependencies.
  7. 2kB for min+gzip and 7.6kB for minified. See in bundlefobia.
  8. Deno?

Wanna be contributor?

See contribute guide

Wiki

Available by link: https://github.com/vitalics/rslike/wiki

Packages

  • std. Standard library. Includes Result, Option, match, Bind, Async.
  • cmp. Comparison package. Exporting Ordering class and Eq, PartialEq, Ord, PartialOrd types.
  • dbg. Prints debug information about given variable.

Tech Stack

Plans

  • [] Primitives
  • [] extendign built-ins collections
  • [] Extend Collections (Hashset, Hashmap, MapReduce)
  • [] make match tc39 proposal compatable.

About

Rust-like but for TypeScript/JavaScript

https://www.npmjs.com/search?q=%40rslike

License:Other


Languages

Language:TypeScript 97.8%Language:JavaScript 2.1%Language:Shell 0.1%