Skip to content

Instantly share code, notes, and snippets.

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