Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (14 sloc) 365 Bytes

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

  • Works
  • Small Footprint (37 bytes)

Using

File1.js:

var global = require('global');

global.foo = 'bar';

File2.js:

var global = require('global');

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

Installing

npm install global

Running Tests

vows test/test.js