Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stevemao/promise-to-callback

Convert promise to callback interface
https://github.com/stevemao/promise-to-callback

Last synced: 2 months ago
JSON representation

Convert promise to callback interface

Awesome Lists containing this project

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

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