0.0.1 • Published 7 years ago

force-global v0.0.1

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

🌏 Force Global

Force place your module into global if possible

Install

  • NPM
    npm install --save force-global
  • Yarn
    yarn add force-global

Usage

// CommonJS
const { ForceGlobal } = require('force-global')
// ES6+
import ForceGlobal from 'force-global'

function add (a, b) {
  return a + b
}

ForceGlobal('SuperAddNumber', add)
// Now you can access your global with function SuperAddNumber

License

MIT © M Habib Rohman