# futurize-p

> Turns a function that returns a promise into a function that returns a future.

Latest version **1.0.2** (published 2017-02-09) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install futurize-p
pnpm add futurize-p
yarn add futurize-p
bun add futurize-p
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-02-09 |
| First published | 2016-12-05 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Johnny Hauser |
| Maintainers | m59 |
| Keywords | future, futurize, futurify, promise, functional, function, convert, compatible, fantasy, land |

## Links

- npm: https://www.npmjs.com/package/futurize-p
- Repository: https://github.com/m59peacemaker/js-futurize-p
- Homepage: https://github.com/m59peacemaker/js-futurize-p#readme
- Issues: https://github.com/m59peacemaker/js-futurize-p/issues
- npm.io page: https://npm.io/package/futurize-p

## Alternatives

- [@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
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-02-09
- 1.0.1 — 2016-12-10
- 1.0.0 — 2016-12-05

## README

# futurize-p

Turns a function that returns a promise into a function that returns a future.

## install

```sh
npm install futurize-p
```

## example

```js
const {Future} = require('ramda-fantasy')
const futurize = require('futurize-p')(Future) // pass in an implementation of Future

const incrementLater = (ms, n) => new Promise((resolve, reject) => {
  setTimeout(() => {
    resolve(n + 1)
  }, ms)
})

const futureIncrement = futurize(incrementLater)
futureIncrement(500, 7).fork(
  console.error,
  console.log //=> 8
)
```

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