Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created March 13, 2014 18:36
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 tbranyen/9534142 to your computer and use it in GitHub Desktop.
Save tbranyen/9534142 to your computer and use it in GitHub Desktop.
CommonJS permutations.
// Literal value given to the module.
module.exports = {};
// Selective values being assigned.
exports.property = "value";
// "Absolute" modules may loaded from system or local `node_modules`.
require("globalModule");
// "Relative" modules are always resolved relative to the module requesting.
require("./localModule");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment