Package Exports
- promisify-function
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (promisify-function) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
promisify-function
Turn a callback style function into a function that returns a promise.
Installation
The recommended way to install promisify-function
is as a dependency of a project:
npm install --save promisify-function
Usage
Pass a callback style function and get a function the returns a Promise as result:
const fs = require('fs')
const promisify = require('promisify-function')
const mkdir = promisify(fs.mkdir)
Contributing
Any contribution is more than welcome. In particular, if: