Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created June 12, 2013 01:21
Show Gist options
  • Save ELLIOTTCABLE/5762232 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/5762232 to your computer and use it in GitHub Desktop.
~function(myLib){ var privateMethod
privateMethod = function(){ ... }
myLib.publicMethod = function(){ ... }
myLib._internals = function(){ return ({
privateMethod: privateMethod
})}
}(module.exports || new Object)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment