Created
July 9, 2017 11:46
-
-
Save alexpilugin/37c11d5b1942517bd93b3a4d4e21348b 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
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