Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stevemao/promise-to-callback
- Owner: stevemao
- License: mit
- Created: 2015-09-03T06:41:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T05:26:46.000Z (over 9 years ago)
- Last Synced: 2024-10-19T20:04:27.144Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: license
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)