Global Pattern for Node.js
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
README.md
package.json

README.md

Global -- Implementation of the Global Pattern for Node.js

  • Works
  • Small Footprint (37 bytes)

Using

File1.js:

var globe = require('global');

globe.foo = 'bar';

File2.js:

var globe = require('global');

console.log(globe.foo); // should be 'bar'

Installing

npm install global

Running Tests

vows test/test.js