Skip to content

Instantly share code, notes, and snippets.

@jeremiahbiard
Created November 12, 2016 09:51
Show Gist options
  • Save jeremiahbiard/e55af1466118fc02b90f28538d8538c5 to your computer and use it in GitHub Desktop.
Save jeremiahbiard/e55af1466118fc02b90f28538d8538c5 to your computer and use it in GitHub Desktop.
var co = require('co');
var request = require('co-request');

co(function*(){
  var urls = process.argv.slice(2,5);
  var res = yield urls.map(request);
  res.forEach(console.log);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment