0.0.1 • Published 9 years ago
force-global v0.0.1
🌏 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 SuperAddNumberLicense
MIT © M Habib Rohman
0.0.1
9 years ago