Skip to content

Instantly share code, notes, and snippets.

@pingjiang
Created October 15, 2014 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pingjiang/1a9d86098865fc84f473 to your computer and use it in GitHub Desktop.
Save pingjiang/1a9d86098865fc84f473 to your computer and use it in GitHub Desktop.
server and browser javascript bootstrap code.
(function() {
var root = this;
var _ = function() {
};
// Export the object for **Node.js**, with
// backwards-compatibility for the old `require()` API. If we're in
// the browser, add `_` as a global object.
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = _;
}
exports._ = _;
} else {
root._ = _;
}
// Current version.
_.VERSION = '0.0.0';
}.call(this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment