Created
February 11, 2011 21:32
-
-
Save cadorn/823078 to your computer and use it in GitHub Desktop.
HelloWorld CommonJS Program
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
module.declare([], function(require, exports, module) | |
{ | |
exports.main = function() | |
{ | |
module.print("Hello World from Gist!\n"); | |
} | |
}); |
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
{ | |
"main": "main.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment