Created
September 14, 2015 20:26
-
-
Save dmcassel/0b76ff1b20341327bcd3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// utilities.sjs | |
// Library modules can require other library modules. | |
var o = require("../other.sjs"); | |
module.exports = { | |
// Maps the internal implementation to a public name. | |
doSomething: internalSomething | |
}; | |
// "Protected" function not accessible outside of the current module. | |
function internalSomething() { | |
// Do something… | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment