http://caolanmcmahon.com/posts/writing_for_node_and_the_browser/
(function(exports){
// your code goes here
exports.test = function(){
return 'hello world'
};
})(typeof exports === 'undefined'? this['mymodule']={}: exports);
http://caolanmcmahon.com/posts/writing_for_node_and_the_browser/
(function(exports){
// your code goes here
exports.test = function(){
return 'hello world'
};
})(typeof exports === 'undefined'? this['mymodule']={}: exports);