0.2.1 • Published 9 years ago

node-promises v0.2.1

Weekly downloads
58
License
MIT
Repository
github
Last release
9 years ago

node-promises

This module add promise version to all node module functions

Example:

var nodePromise = require('node-promises');
var fs = nodePromise('fs');

fs.existsPromise(__filename)
.spread(function(exists) { //exists=true
  return fs.mkdirPromise(__dirname + '/test');
}).spread(function() {
  // test folder has been created
});

since the promise return the argument array of the callback you should prefer use spread instead then

0.2.1

9 years ago

0.2.0

9 years ago

0.0.1

9 years ago