r-promisify
v0.0.3
Published
Promise wrapper for errbacks
Downloads
3
Readme
Promise wrapper for errbacks
Installation
$ npm install r-promisify
Usage
var promisfiy = require('r-promisify');
var existsAsync = promisify(require('fs').exists);
existsAsync('path').then(...);
Or alternatively:
require('r-promisify')(require('fs'));
fs.existsAsync('path').then(...);