1.0.2 • Published 4 years ago
@allex/global v1.0.2
@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