Package Exports
- global
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (global) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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