any-pify
Simply pify
pre-loaded with any-promise
.
Usage
const pify = ;const fs = ; // Promisify a single function'package.json' 'utf8'; // Or promisify all methods in a module;
API
pify(input, [options])
Returns a promise wrapped version of the supplied function or module.
The promiseModule
option from pify
is not present here. It is passed
the value resolved from any-promise
. The options
argument is passed
directly to pify
.
License
MIT