# resulty

> A disjunction implementation in TypeScript.

Latest version **8.0.0** (published 2025-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install resulty
pnpm add resulty
yarn add resulty
bun add resulty
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 8.0.0 |
| Published | 2025-03-03 |
| First published | 2017-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 46.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Ryan L. Bell |
| Maintainers | kofno |
| Keywords | result, disjunction, typescript, error, monad, functional |

## Links

- npm: https://www.npmjs.com/package/resulty
- Repository: https://github.com/kofno/resulty
- Homepage: https://github.com/kofno/resulty#readme
- Issues: https://github.com/kofno/resulty/issues
- npm.io page: https://npm.io/package/resulty

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 8.0.0 (latest) — 2025-03-03
- 7.0.0 — 2025-03-03
- 6.2.0 — 2024-04-04
- 6.1.0 — 2023-12-18
- 6.0.0 — 2023-12-14
- 5.1.0 — 2023-02-17
- 5.0.0 — 2021-12-16
- 4.0.0 — 2021-05-13
- 3.0.0 — 2019-11-22
- 2.2.0 — 2018-06-10
- 2.1.0 — 2018-05-27
- 2.0.1 — 2017-12-17
- 2.0.0 — 2017-12-17
- 1.2.0 — 2017-04-23
- 1.1.0 — 2017-04-23
- … 2 more at https://npm.io/package/resulty/versions

## README

# resulty

[![Build Status](https://travis-ci.org/kofno/resulty.svg?branch=master)](https://travis-ci.org/kofno/resulty)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=plastic)](https://github.com/semantic-release/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](https://kofno.github.io/resulty)

---
_Source: https://npm.io/package/resulty · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
