JSPM

random-global

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q44438F
  • License MIT

globalize variables under a random alias

Package Exports

  • random-global

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (random-global) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

random-global

Expose a variable onto the window under a randomized alias.

Installation

$ npm install random-global

Usage

var globalize = require('random-global');

var msg = 'yes';
var doesThisWork = globalize(msg);

window[doesThisWork]; // 'yes'

License

MIT