包详细信息

@allex/global

allex11MIT1.0.2

Provide a standard api for cross envs global access.

global

自述文件

@allex/global

Provide a unify api for cross global access.

Usage

yarn add @allex/global
import g from '@allex/global'

console.log(g === window) // true for browser
console.log(g === global) // true for nodejs

License

MIT