Skip to content

Instantly share code, notes, and snippets.

@cismous
Last active August 29, 2015 14:15
Show Gist options
  • Save cismous/e894aa7b1dd79320372b to your computer and use it in GitHub Desktop.
Save cismous/e894aa7b1dd79320372b to your computer and use it in GitHub Desktop.

Example 1

(function (CustomObject) { CustomObject.init = function () {}; return CustomObject; }(exports));

Example 2

CustomObject = {}; CustomObject.init = function () {}; module.exports = function () { return CustomObject; };

Example 3

CustomObject = {}; CustomObject.init = function () {}; module.exports = CustomObject;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment