1.0.1 • Published 7 years ago
get-win v1.0.1
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!