6.2.0 • Published 1 month ago

resulty v6.2.0

Weekly downloads
3,710
License
MIT
Repository
github
Last release
1 month ago

resulty

Build Status semantic-release

A disjunction implementation in TypeScript.

install

npm install --save resulty

yarn add resulty

usage

import { ok, err } from 'resulty';

function parse(s) {
  try {
    return ok(JSON.parse(s));
  }
  catch(e) {
    return err(e.message);
  }
}

docs

API