get-win
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published


Get-Win
API Stability TypeScript Styled with prettier Build status Test Coverage NPM Version Downloads Browser Bundle Size

Simple utility to get the current global context anywhere. There are many of these however they either don't account for all environments and all settings (IE no eval) or do not support older browsers.

Also this module exposes the proper typescript any type for the global.

Installation

npm install get-win

Example

import { get } from 'get-win'
 
const window = get()
 
window.addEventListener(...)

Contributions

  • Use npm test to build and run tests.

Please feel free to create a PR!

Package Sidebar

Install

npm i get-win

Weekly Downloads

35

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dylanpiercey