Skip to content

Instantly share code, notes, and snippets.

@pushmon
Created April 2, 2014 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pushmon/9935625 to your computer and use it in GitHub Desktop.
Save pushmon/9935625 to your computer and use it in GitHub Desktop.
Node
<#if filename>
node_.txt
<#elseif title>
Node
<#elseif logo>
//dmnv44fd3imdv.cloudfront.net/www.pushmon.com/img/code/java.gif
<#elseif code>
var request = require('request');
request('${urlstring}',
function(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
});
</#if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment