Created
September 18, 2011 06:05
-
-
Save gjohnson/1224793 to your computer and use it in GitHub Desktop.
Modules - NCDEVCON
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
/** | |
* See docs for path resolution... | |
* http://nodejs.org/docs/v0.4.12/api/modules.html | |
*/ | |
var foo = require('./foo'); | |
console.log(foo.bar()); |
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
exports.hello = function() { | |
return "Hello NCDEVCON!"; | |
}; |
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
var bar = require('./bar'); | |
exports.bar = function() { | |
return bar.hello(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment