execute

Execute commands in parallel

execute

Execute commands in parallel

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({
    filefunction (callback) {
        readFile(join(__dirname, "..", "README.md"), callback)
    }
    , readmefunction (callback) {
        request(link, function (errresbody) {
            callback(err, body)
        })
    }
}, function (errresults) {
    var file = String(results.file)
        , readme = String(results.readme)
 
    equal(file, readme)
    console.log("done")
})
 

npm install execute

  • Raynos