Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (14 sloc) 0.365 kb

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
Jump to Line
Something went wrong with that request. Please try again.