# fantasy-eithers

> Either data structure.

Latest version **0.0.2** (published 2015-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install fantasy-eithers
pnpm add fantasy-eithers
yarn add fantasy-eithers
bun add fantasy-eithers
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-01-30 |
| First published | 2013-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Brian McKenna |
| Maintainers | puffnfresh, trevorbasinger |
| Keywords | fantasyland, either, monad |

## Links

- npm: https://www.npmjs.com/package/fantasy-eithers
- Repository: https://github.com/fantasyland/fantasy-eithers
- Issues: https://github.com/fantasyland/fantasy-eithers/issues
- npm.io page: https://npm.io/package/fantasy-eithers

## Dependencies (2)

- [daggy](https://npm.io/package/daggy.md) 0.0.1
- [fantasy-combinators](https://npm.io/package/fantasy-combinators.md) 0.0.1

## Recent versions

- 0.0.2 (latest) — 2015-01-30
- 0.0.1 — 2013-05-31

## README

# Fantasy Eithers

![](https://raw.github.com/puffnfresh/fantasy-land/master/logo.png)

## General

The option type encodes the presence and absence of a value. The
`Some` constructor represents a value and `None` represents the
absence.

## Testing

### Library

Fantasy Eithers uses [nodeunit](https://github.com/caolan/nodeunit) for 
all the tests and because of this there is currently an existing 
[adapter](test/lib/test.js) in the library to help with integration 
between nodeunit and Fantasy Check.

### Coverage

Currently Fantasy Check is using [Istanbul](https://github.com/gotwarlost/istanbul) 
for code coverage analysis; you can run the coverage via the following
command:

_This assumes that you have istanbul installed correctly._

```
istanbul cover nodeunit -- test/*.js
```

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