resultify

convert node functions to Result returning ones

resultify

convert node functions to Result returning ones

With component, packin or npm

$ {package mananger} install jkroso/resultify

then in your app:

var resultify = require('resultify')

Decorate a node function to return a Result instead of taking a callback

var readFile = resultify(fs.readFile)
readFile('/path/to/file.js', 'utf8').then(function(src){
  process.stdout.write(src)
})

just a copy of the fs module from node but with all of the async functions run through the above function

Just run make test