Last active
December 17, 2015 21:09
-
-
Save simonmcmanus/5672521 to your computer and use it in GitHub Desktop.
Node.js/Clientside include
This file contains hidden or 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 sayHi = function() { | |
return 'Hi'; | |
}; | |
if(typeof exports === 'object'){ | |
exports.sayHi = sayHi; | |
} else { | |
// your browser export | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment