Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Turn a hash of continuables into a continuable containing a hash of values
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
test
.gitignore
.testem.json
.travis.yml
LICENCE
README.md
index.js
package.json

README.md

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

Something went wrong with that request. Please try again.