globo

Turn identifiers into global lookups that work in Node and the browser

MIT 4 个版本
安装
npm install globo
yarn add globo
pnpm add globo
bun add globo
README

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

版本列表
1.1.0 2015-07-17
1.0.2 2015-07-13
1.0.1 2015-07-13
1.0.0 2015-06-16