UNPKG

jurl

Version:

A minimal but useful cURL wrapper.

17 lines (14 loc) 479 B
/** * Created by instancetype on 8/19/14. */ /* jshint bitwise : true, eqeqeq : true, forin : true, noarg : true, noempty : true, nonew : true, asi : true, esnext : true, laxcomma : true, sub : true, browser : true, node : true, phantom : true */ const spawn = require('child_process').spawn function spawnJurler(opts) { var jurler = spawn('curl', opts) jurler.stdout.on('data', function(data) { console.log(data.toString()) }) } module.exports = spawnJurler