force-global
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

🌏 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

Package Sidebar

Install

npm i force-global

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • rohmanhm