Skip to content

Instantly share code, notes, and snippets.

@alexpilugin
Created July 9, 2017 11:46
Show Gist options
  • Save alexpilugin/37c11d5b1942517bd93b3a4d4e21348b to your computer and use it in GitHub Desktop.
Save alexpilugin/37c11d5b1942517bd93b3a4d4e21348b to your computer and use it in GitHub Desktop.
var DATA = []; //or {}
//universal javascript module
// This makes sure the data is exported in node.js
// `require('./{your_path}/data.js')` will get your data:
if (typeof module != "undefined" && module.exports) {
module.exports = DATA;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment