Created
January 19, 2012 05:28
-
-
Save jakobo/1638165 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
exports.increment = function(val) { | |
return val + 1; | |
}; |
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
var inc = require('increment').increment; | |
var a = 1; | |
altert(inc(a)); // 2 |
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
<script type="text/javascript" src="inject.js"></script> | |
<script type="text/javascript"> | |
reqiure.setModuleRoot("http://example.com/js/modules"); | |
require.run("program"); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment