execute

Execute commands in parallel

npm install execute
3 downloads in the last week
8 downloads in the last month

execute

Execute commands in parallel

Example

var execute = require("execute")
    , readFile = require("fs").readFile
    , join = require("path").join
    , request = require("request")
    , equal = require("assert").equal

    , link = "https://raw.github.com/Colingo/execute" +
        "/master/README.md"

execute({
    file: function (callback) {
        readFile(join(__dirname, "..", "README.md"), callback)
    }
    , readme: function (callback) {
        request(link, function (err, res, body) {
            callback(err, body)
        })
    }
}, function (err, results) {
    var file = String(results.file)
        , readme = String(results.readme)

    equal(file, readme)
    console.log("done")
})

Installation

npm install execute

Contributors

  • Raynos

MIT Licenced

npm loves you