Skip to content

Instantly share code, notes, and snippets.

@abelmartin
Created August 20, 2011 16:40
Show Gist options
  • Save abelmartin/1159313 to your computer and use it in GitHub Desktop.
Save abelmartin/1159313 to your computer and use it in GitHub Desktop.
// myModule.js
var n = 100;
exports.getNumber = function(){}
exports.setNumber = function(){}
// app.js
var myMod = require('./myModule');
console.log(myMod.getNumber());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment