global-var

Get the correct 'global' variable for the current runtime environment (
windowin browser,globalin node, etc)
Install
Install with npm
$ npm i global-var --save
Usage
var globals = require('global-var');
globals.setTimeout(
function(){
console.log('Hello, world!');
}, 1000);
// --> "Hello, world!" after 1000ms
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Andreas Pizsa
License
Copyright 2016 Andreas Pizsa Released under the MIT license.
This file was generated by verb-cli on February 16, 2016.