curlrequest
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -232,2 +232,5 @@ var util = require('util') | ||
for (key in options) { | ||
if (key === 'pretend') { | ||
continue; | ||
} | ||
values = Array.isArray(options[key]) ? options[key] : [options[key]]; | ||
@@ -234,0 +237,0 @@ values.forEach(function (value) { |
{ "name" : "curlrequest", | ||
"description" : "A curl wrapper for node", | ||
"version" : "0.3.9", | ||
"version" : "0.3.10", | ||
"homepage" : "https://github.com/chriso/curlrequest", | ||
@@ -5,0 +5,0 @@ "author" : "Chris O'Hara <cohara87@gmail.com>", |
13
test.js
var curl = require('./'); | ||
var options = { | ||
url: 'http://node.io' | ||
}; | ||
(function next() { | ||
curl.request(options, function (err, data, meta) { | ||
console.log(meta.args); | ||
next(); | ||
}); | ||
})(); | ||
curl.request({ url: 'http://google.com', pretend: true }, function (err, stdout, meta) { | ||
console.log('%s %s', meta.cmd, '"' + meta.args.join('" "') + '"'); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27393
488