Skip to content

vitalics/rslike

Repository files navigation

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.