Created
January 14, 2015 13:45
-
-
Save tshm/73f71b962306a9264f7b to your computer and use it in GitHub Desktop.
javascript library template.
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
(function(global) { | |
"use strict;" | |
// Your Module | |
function YourModule() { | |
// ... | |
} | |
// Exports | |
if ("process" in global) { | |
module["exports"] = YourModule; | |
} | |
global["YourModule"] = YourModule; | |
})((this || 0).self || global); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment