Created
December 3, 2014 00:54
-
-
Save devdays/8adfbf1e72b750b98281 to your computer and use it in GitHub Desktop.
Object JavaScript - Synchronous Module
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
// Import new modules anywhere | |
var otherModule = require("libs/otherModule"); | |
// Export your functions, classes, objects etc. | |
exports.myFunction = function () { | |
otherModule.otherExportedFunction() + 1; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment