@millionfor/global
Provide a standard api for cross envs global access.
Installation
$ npm i @millionfor/global
Usage
import G from '@millionfor/global'
console.log(G === window) // true for browser
console.log(G === global) // true for nodejs
APIs
declare const global: any;
export default global;
License
MIT