# promisify-f

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

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

## Install

```sh
npm install promisify-f
pnpm add promisify-f
yarn add promisify-f
bun add promisify-f
```

## 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 | promise, promisify, future, functional, function, convert, compatible, fantasy, land |

## Links

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

## 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

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

## README

# promisify-f

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

## install

```sh
npm install promisify-f
```

## example

```js
const promisify = require('promisify-f')

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

const incrementAsync = promisify(futureIncrement)
incrementAsync(500, 7).then(console.log) //=> 8
```

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