Last active
August 29, 2015 14:06
-
-
Save paulohp/7c264197e3433c5cc17c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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