globo

1.1.0 • Public • Published

globo Build Status

Turn module ids into global lookups that work in Node and the browser

Install

$ npm install --save globo

Usage

var globalize = require('globo');
 
globo('_');
//=> (typeof window !== "undefined" ? window._ : typeof global !== "undefined" ? global._ : null)

API

globo(id) -> string

id

Required
Type: string

A module id.

globo

License

MIT © Ben Drucker

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    21,331
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    21,331
  • 1.0.2
    1,542
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i globo

Weekly Downloads

22,873

Version

1.1.0

License

MIT

Last publish

Collaborators

  • bendrucker