# failable-result

> Lightweight module representing failable result

Latest version **2.0.1** (published 2018-06-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install failable-result
pnpm add failable-result
yarn add failable-result
bun add failable-result
```

## Health

**Score 25/100 (F)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2018-06-10 |
| First published | 2018-05-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Milan Gatyas |
| Maintainers | mgjam |

## Links

- npm: https://www.npmjs.com/package/failable-result
- Repository: https://github.com/mgjam/nodejs-modules-failable-result
- Homepage: https://github.com/mgjam/nodejs-modules-failable-result#readme
- Issues: https://github.com/mgjam/nodejs-modules-failable-result/issues
- npm.io page: https://npm.io/package/failable-result

## Recent versions

- 2.0.1 (latest) — 2018-06-10
- 2.0.0 — 2018-06-10
- 1.2.1 — 2018-06-10
- 1.2.0 — 2018-06-02
- 1.1.1 — 2018-06-02
- 1.1.0 — 2018-06-02
- 1.0.0 — 2018-05-26

## README

[![Build Status](https://travis-ci.org/mgjam/nodejs-modules-failable-result.svg?branch=master)](https://travis-ci.org/mgjam/nodejs-modules-failable-result) [![Coverage Status](https://coveralls.io/repos/github/mgjam/nodejs-modules-failable-result/badge.svg?branch=master)](https://coveralls.io/github/mgjam/nodejs-modules-failable-result?branch=master)
# failable-result
Lightweight module to represent failable result

## Installation
```sh
npm install failable-result
```

## Test
```sh
npm run test
```

## Usage [JS]
```js
const lib = require("failable-result");

const fun = b => b ? lib.createResult(b) : lib.createFailure(b);

[fun(true), fun(false)].forEach(x => x.handle(
    result => console.log(`result: [${result}]`),
    failure => console.error(`failure: [${failure}]`)
));

/* ***Output***
 * result: [true]
 * failure: [false]
 * /
```

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