# global-var

> Get the correct 'global' variable for the current runtime environment (`window` in browser, `global` in node, etc)

Latest version **0.1.0** (published 2016-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install global-var
pnpm add global-var
yarn add global-var
bun add global-var
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-02-16 |
| First published | 2016-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andreas Pizsa |
| Maintainers | andreaspizsa |
| Keywords | window, global, setTimeout, setInterval |

## Links

- npm: https://www.npmjs.com/package/global-var
- Repository: https://github.com/andreaspizsa/global-var
- Homepage: https://github.com/AndreasPizsa/global-var
- Issues: https://github.com/AndreasPizsa/global-var/issues
- npm.io page: https://npm.io/package/global-var

## Recent versions

- 0.1.0 (latest) — 2016-02-16

## README

# global-var ![Travis](https://img.shields.io/travis/AndreasPizsa/global-var.svg?style=flat-square) ![Coverage Status](https://img.shields.io/coveralls/AndreasPizsa/global-var.svg?style=flat-square) ![Downloads](https://img.shields.io/npm/dm/global-var.svg?style=flat-square)

> Get the correct 'global' variable for the current runtime environment (`window` in browser, `global` in node, etc)

## Install

Install with [npm](https://www.npmjs.com/)

```sh
$ npm i global-var --save
```

## Usage

```js
var globals = require('global-var');

globals.setTimeout(
  function(){
    console.log('Hello, world!');
  }, 1000);
// --> "Hello, world!" after 1000ms
```

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/AndreasPizsa/global-var/issues/new).

## Author

**Andreas Pizsa**

+ [github/AndreasPizsa](https://github.com/AndreasPizsa)
+ [twitter/AndreasPizsa](http://twitter.com/AndreasPizsa)

## License

Copyright © 2016 Andreas Pizsa
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on February 16, 2016._

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