# get-win

> Gets the current window/global object in any runtime.

Latest version **1.0.1** (published 2017-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-win
pnpm add get-win
yarn add get-win
bun add get-win
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-10-22 |
| First published | 2017-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Dylan Piercey |
| Maintainers | dylanpiercey |
| Keywords | isomorphic, window, global, self, this, universal |

## Links

- npm: https://www.npmjs.com/package/get-win
- Repository: https://github.com/DylanPiercey/parse-form
- Homepage: https://github.com/DylanPiercey/get-win
- Issues: https://github.com/DylanPiercey/get-win/issues
- npm.io page: https://npm.io/package/get-win

## Recent versions

- 1.0.1 (latest) — 2017-10-22
- 1.0.0 — 2017-10-22

## README

<h1 align="center">
  <!-- Logo -->
  <br/>
  Get-Win
	<br/>

  <!-- Stability -->
  <a href="https://nodejs.org/api/documentation.html#documentation_stability_index">
    <img src="https://img.shields.io/badge/stability-stable-brightgreen.svg" alt="API Stability"/>
  </a>
  <!-- TypeScript -->
  <a href="http://typescriptlang.org">
    <img src="https://img.shields.io/badge/%3C%2F%3E-typescript-blue.svg" alt="TypeScript"/>
  </a>
  <!-- Prettier -->
  <a href="https://github.com/prettier/prettier">
    <img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="Styled with prettier"/>
  </a>
  <!-- Travis build -->
  <a href="https://travis-ci.org/DylanPiercey/get-win">
  <img src="https://img.shields.io/travis/DylanPiercey/get-win.svg" alt="Build status"/>
  </a>
  <!-- Coveralls coverage -->
  <a href="https://coveralls.io/github/DylanPiercey/get-win">
    <img src="https://img.shields.io/coveralls/DylanPiercey/get-win.svg" alt="Test Coverage"/>
  </a>
  <!-- NPM version -->
  <a href="https://npmjs.org/package/get-win">
    <img src="https://img.shields.io/npm/v/get-win.svg" alt="NPM Version"/>
  </a>
  <!-- Downloads -->
  <a href="https://npmjs.org/package/get-win">
    <img src="https://img.shields.io/npm/dm/get-win.svg" alt="Downloads"/>
  </a>
  <!-- Size -->
  <a href="https://npmjs.org/package/get-win">
    <img src="https://img.shields.io/badge/gzipped-441b-green.svg" alt="Browser Bundle Size"/>
  </a>
</h1>

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

```console
npm install get-win
```

# Example

```javascript
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!

---
_Source: https://npm.io/package/get-win · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
