forked from enviPath/enviPy
40 lines
583 B
Markdown
40 lines
583 B
Markdown
# globo [](https://travis-ci.org/bendrucker/globo)
|
|
|
|
> Turn module ids into global lookups that work in Node and the browser
|
|
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install --save globo
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
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.
|
|
|
|
|
|

|
|
|
|
|
|
## License
|
|
|
|
MIT © [Ben Drucker](http://bendrucker.me)
|