Skip to content
Empty module, useful for sharing globals among your sub-modules.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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 }
Something went wrong with that request. Please try again.