1.0.0 • Published 1 year ago

@millionfor/global v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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

1.0.0

1 year ago