Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

get-win

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    get-win

Gets the current window/global object in any runtime.


Version published
Weekly downloads
43
decreased by-10.42%
Maintainers
1
Install size
5.19 kB
Created
Weekly downloads
 

Readme

Source


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!

Keywords

FAQs

Last updated on 22 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc