Empty module, useful for sharing globals among your sub-modules.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

glb

Empty module, useful for sharing globals across your sub-modules.

Install

npm install glb

Example :

  • main.js :
var glb  = require('glb');
var test = require('./test');

console.log(glb);
  • test.js :
var glb = require('glb');

glb.foo = 42;
  • output :
> node main.js
{ foo: 42 }