Skip to content

Instantly share code, notes, and snippets.

@paulohp
Last active August 29, 2015 14:06
Show Gist options
  • Save paulohp/7c264197e3433c5cc17c to your computer and use it in GitHub Desktop.
Save paulohp/7c264197e3433c5cc17c to your computer and use it in GitHub Desktop.
// module
exports.makePaulo = function () {
request('http://blaablablablbla', function(err, res, body){
return res.statusCode
});
};
//using module
var mundo = require('mundo');
var paulo = mundo.makePaulo();
console.log(paulo) //should be a statusCode like 200 but I got undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment