Created
August 16, 2014 16:30
-
-
Save shri3k/7ac40170e5d2606b4180 to your computer and use it in GitHub Desktop.
Node-globals
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 someVal = "I'm just random value"; | |
global.someVal = someVal; |
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 getGlobal = require('./globalMe'); | |
console.log(getGlobal.someVal); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment