0.2.0 • Published 7 years ago

redeem v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

redeem

redeem overloads your require function with a fallback to global lookup for use in mixed environments.

npm install redeem --save

Example

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)
}