0.1.4 • Published 12 years ago

continuable-hash v0.1.4

Weekly downloads
889
License
-
Repository
github
Last release
12 years ago

continuable-hash

Turn a hash of continuables into a continuable containing a hash of values

Example

var fs = require("fs")
var hash = require("continuable-hash")

var file1 = function (cb) {
    fs.readFile("~/foo", cb)
}
var file2 = function (cb) {
    fs.readFile("~/bar", cb)
}

hash({ file1: file1, file2: file2 })(function (err, tuple) {
    if (err) {
        throw err
    }

    var file1 = tuple.file1
    var file2 = tuple.file2
    /* do stuff */
})

Installation

npm install continuable-hash

Contributors

  • Raynos

MIT Licenced

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago