# promise-to-callback

> Convert promise to callback interface

Latest version **1.0.0** (published 2015-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install promise-to-callback
pnpm add promise-to-callback
yarn add promise-to-callback
bun add promise-to-callback
```

## 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.0 |
| Published | 2015-09-03 |
| First published | 2015-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Steve Mao |
| Maintainers | stevemao |
| Keywords | promise, convert, callback |

## Links

- npm: https://www.npmjs.com/package/promise-to-callback
- Repository: https://github.com/stevemao/promise-to-callback
- Homepage: https://github.com/stevemao/promise-to-callback#readme
- Issues: https://github.com/stevemao/promise-to-callback/issues
- npm.io page: https://npm.io/package/promise-to-callback

## Dependencies (2)

- [is-fn](https://npm.io/package/is-fn.md) ^1.0.0
- [set-immediate-shim](https://npm.io/package/set-immediate-shim.md) ^1.0.1

## 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.0 (latest) — 2015-09-03
- 0.0.0 — 2015-09-03

## README

# promise-to-callback [![Build Status](https://travis-ci.org/stevemao/promise-to-callback.svg?branch=master)](https://travis-ci.org/stevemao/promise-to-callback)

> Convert promise to callback interface

Because there are many promise implementations and callbacks are better to handle errors.


## Install

```
$ npm install --save promise-to-callback
```


## Usage

```js
var promiseToCallback = require('promise-to-callback');

promiseToCallback(promise)(function(err, data) {
	...
});
```


## License

MIT © [Steve Mao](https://github.com/stevemao)

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