pax_global_header00006660000000000000000000000064134774371570014534gustar00rootroot0000000000000052 comment=91c4362aa2720f7c7a3a085707de7e04f5e77cf3 global-4.4.0/000077500000000000000000000000001347743715700130015ustar00rootroot00000000000000global-4.4.0/.gitignore000066400000000000000000000002241347743715700147670ustar00rootroot00000000000000.DS_Store .monitor .*.swp .nodemonignore releases *.log *.err fleet.json public/browserify bin/*.json .bin build compile .lock-wscript node_modules global-4.4.0/.travis.yml000066400000000000000000000000531347743715700151100ustar00rootroot00000000000000language: node_js node_js: - 0.8 - 0.9 global-4.4.0/LICENSE000066400000000000000000000020341347743715700140050ustar00rootroot00000000000000Copyright (c) 2012 Colingo. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. global-4.4.0/README.md000066400000000000000000000007741347743715700142700ustar00rootroot00000000000000# global Require global variables ## Example ```js var global = require("global") var document = require("global/document") var window = require("global/window") ``` ## Installation `npm install global` ## Contributors - Raynos ## MIT Licenced [1]: https://secure.travis-ci.org/Colingo/global.png [2]: http://travis-ci.org/Colingo/global [3]: http://ci.testling.com/Colingo/global.png [4]: http://ci.testling.com/Colingo/global global-4.4.0/console.js000066400000000000000000000000321347743715700147740ustar00rootroot00000000000000module.exports = console; global-4.4.0/document.js000066400000000000000000000006101347743715700151520ustar00rootroot00000000000000var topLevel = typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : {} var minDoc = require('min-document'); var doccy; if (typeof document !== 'undefined') { doccy = document; } else { doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4']; if (!doccy) { doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc; } } module.exports = doccy; global-4.4.0/package.json000066400000000000000000000022321347743715700152660ustar00rootroot00000000000000{ "name": "global", "version": "4.4.0", "description": "Require global variables", "keywords": [], "author": "Raynos ", "repository": "git://github.com/Raynos/global.git", "main": "window.js", "homepage": "https://github.com/Raynos/global", "contributors": [ { "name": "Raynos" } ], "bugs": { "url": "https://github.com/Raynos/global/issues", "email": "raynos2@gmail.com" }, "browser": { "min-document": false, "individual": false }, "dependencies": { "min-document": "^2.19.0", "process": "^0.11.10" }, "devDependencies": { "tape": "^2.12.0" }, "license": "MIT", "scripts": { "test": "node ./test", "build": "browserify test/index.js -o test/static/bundle.js", "testem": "testem" }, "testling": { "files": "test/index.js", "browsers": { "ie": [ "8", "9", "10" ], "firefox": [ "16", "17", "nightly" ], "chrome": [ "22", "23", "canary" ], "opera": [ "12", "next" ], "safari": [ "5.1" ] } } } global-4.4.0/process.js000066400000000000000000000000451347743715700150140ustar00rootroot00000000000000module.exports = require('process'); global-4.4.0/window.js000066400000000000000000000003501347743715700146440ustar00rootroot00000000000000var win; if (typeof window !== "undefined") { win = window; } else if (typeof global !== "undefined") { win = global; } else if (typeof self !== "undefined"){ win = self; } else { win = {}; } module.exports = win;