@millionfor/global
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @millionfor/global

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.98 kB

Total Files

6

Last publish

Collaborators

  • millionfor