resulty
TypeScript icon, indicating that this package has built-in type declarations

6.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i resulty

Weekly Downloads

6,708

Version

6.2.0

License

MIT

Unpacked Size

25 kB

Total Files

21

Last publish

Collaborators

  • kofno