@allex/global

1.0.2 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @allex/global

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

1.75 kB

Total Files

4

Last publish

Collaborators

  • allex