promise-call
Install
npm i promise-call
Usage
var pcall = require('promise-call');
pcall(fs.readfile, filename)
.then(function(content) {
})
.catch(function(error) {
});
npm i promise-call
var pcall = require('promise-call');
pcall(fs.readfile, filename)
.then(function(content) {
})
.catch(function(error) {
});
npm i promise-call
0
1.0.1
MIT