Skip to content

Instantly share code, notes, and snippets.

@techwraith
Created April 13, 2011 01:51
Show Gist options
  • Save techwraith/916816 to your computer and use it in GitHub Desktop.
Save techwraith/916816 to your computer and use it in GitHub Desktop.
Modules
app.js
var thing = require('./foo');
thing.foo(); // "Hello World"
foo.js
exports.foo = function(){console.log("Hello World");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment