Created
September 4, 2013 20:12
-
-
Save damonsk/6442247 to your computer and use it in GitHub Desktop.
This file contains 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
// bah.js | |
module.exports.bah = function(){ | |
function ponies(){ | |
return "hai"; | |
} | |
}; | |
// test.js | |
var bah = require("./bah"); | |
console.log(bah.ponies()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a good way to sanity check this stuff is to fire up the node repl and do require("./bah.js") and it will show you what is being exported