Skip to content

Instantly share code, notes, and snippets.

@keesun
Created January 25, 2012 14:26
Show Gist options
  • Select an option

  • Save keesun/1676504 to your computer and use it in GitHub Desktop.

Select an option

Save keesun/1676504 to your computer and use it in GitHub Desktop.
CommonJS sample
// calculator.js
exports.add = function(n1, n2) {
};
// app.js
var calculator = require('./calculator');
calculator.add(2, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment