0.2.0 • Published 9 years ago
redeem v0.2.0
redeem
redeem overloads your require function with a fallback to global lookup for use in mixed environments.
npm install redeem --saveExample
overload the existing require function
require('redeem')()imagine a global
window.foo = 'bar'then require elsewhere
module.exports = function() {
var foo = require('foo')
console.log(foo)
}