Skip to content

Instantly share code, notes, and snippets.

@joaojeronimo
Last active January 3, 2016 08:39
Show Gist options
  • Save joaojeronimo/8437062 to your computer and use it in GitHub Desktop.
Save joaojeronimo/8437062 to your computer and use it in GitHub Desktop.
data may be a readable stream or an array.
var CrowdProcess = require('crowdprocess');
var crp = new CrowdProcess('[email protected]', 'password');
// Run must be a function or a string containing valid Javascript code
// data must be a readable stream or an array
crp.map(Run, data, onResult);
function onResult (err, result) {
console.log(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment