Skip to content

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

License

Notifications You must be signed in to change notification settings

bendrucker/globo

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published