1.0.1 • Published 9 years ago
promise-call v1.0.1
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) {
});