# futurism

> Fast, sorta-sane and impure monadic Promise implementation.

Latest version **0.2.0** (published 2013-09-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2013-09-20 |
| First published | 2013-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Quildreen Motta |
| Maintainers | killdream |
| Keywords | futures, promises, asynchronous, monads, fantasy-land |

## Links

- npm: https://www.npmjs.com/package/futurism
- Repository: https://github.com/killdream/futurism
- Issues: https://github.com/killdream/futurism/issues
- npm.io page: https://npm.io/package/futurism

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2013-09-20
- 0.1.0 — 2013-09-04

## README

Futurism
========

[![unstable](http://hughsk.github.io/stability-badges/dist/unstable.svg)](http://github.com/hughsk/stability-badges)
[![Build Status](https://secure.travis-ci.org/killdream/futurism.png?branch=master)](https://travis-ci.org/killdream/futurism)
[![Dependencies Status](https://david-dm.org/killdream/futurism.png)](https://david-dm.org/killdream/futurism)

A fast, sorta sane and impure implementation of monadic Promises for
JavaScript. No Promises/A+ bullshit or compatibility.


## Example

```js
var Future = require('futurism')
var a = new Future()
var b = a.map(function(v){ return v + 1 })

a.fulfill(10)
b.map(function(v) { console.log('ok:', v) })
 .orElse(function(v){ console.log('failed:', v) })

// => ok: 11
```


## Installing

Just grab it from NPM:

    $ npm install futurism
    
    
## Test

On Node:

    $ npm test


## Licence

MIT.

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