{"_id":"jsdom-global","_rev":"3292893","name":"jsdom-global","description":"Enable DOM in Node.js","dist-tags":{"latest":"3.0.2"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"time":{"modified":"2024-05-30T03:18:06.000Z","created":"2016-01-11T03:10:35.581Z","3.0.2":"2017-05-08T09:48:40.567Z","3.0.0":"2017-05-08T09:42:06.767Z","2.1.1":"2016-12-23T20:25:43.309Z","2.1.0":"2016-08-22T09:29:39.608Z","2.0.0":"2016-05-13T14:51:29.525Z","1.7.0":"2016-03-21T08:34:35.135Z","1.6.2":"2016-02-22T14:45:33.555Z","1.6.1":"2016-01-14T21:00:25.570Z","1.5.0":"2016-01-12T12:30:21.233Z","1.4.0":"2016-01-12T12:25:45.025Z","1.3.0":"2016-01-11T08:56:44.490Z","1.2.0":"2016-01-11T04:48:22.286Z","1.1.0":"2016-01-11T03:17:24.089Z","1.0.0":"2016-01-11T03:10:35.581Z"},"users":{},"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"versions":{"3.0.2":{"name":"jsdom-global","description":"Enable DOM in Node.js","version":"3.0.2","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"browser":"browser.js","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"devDependencies":{"jsdom":"~10.0.0","standard":"~10.0.2","tape":"~4.6.3"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","keywords":["dom","jsdom","test"],"license":"MIT","main":"index.js","peerDependencies":{"jsdom":">=10.0.0"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"scripts":{"test":"node test.js && standard"},"gitHead":"58ca23634a566de48185ae8d5d20ff099ccd9496","_id":"jsdom-global@3.0.2","_shasum":"6bd299c13b0c4626b2da2c0393cd4385d606acb9","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"6bd299c13b0c4626b2da2c0393cd4385d606acb9","size":4744,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-3.0.2.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsdom-global-3.0.2.tgz_1494236920333_0.18398510105907917"},"directories":{},"publish_time":1494236920567,"_hasShrinkwrap":false,"_cnpm_publish_time":1494236920567,"_cnpmcore_publish_time":"2021-12-16T12:27:16.342Z"},"3.0.0":{"name":"jsdom-global","version":"3.0.0","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js && standard"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"~10.0.0","standard":"~10.0.2","tape":"~4.6.3"},"gitHead":"3050b2edae9ff68a68c343d8d411a7892324f513","_id":"jsdom-global@3.0.0","_shasum":"45b8c4cc3ffceea04e5e14351fe74995fe8e6abe","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"45b8c4cc3ffceea04e5e14351fe74995fe8e6abe","size":4619,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-3.0.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsdom-global-3.0.0.tgz_1494236526530_0.6354626666288823"},"directories":{},"publish_time":1494236526767,"_hasShrinkwrap":false,"_cnpm_publish_time":1494236526767,"_cnpmcore_publish_time":"2021-12-16T12:27:16.556Z"},"2.1.1":{"name":"jsdom-global","version":"2.1.1","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js && standard"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"9.0.0","standard":"7.0.1","tape":"4.4.0"},"gitHead":"9748b5c3d7dbb2f1d25e9662e207c5a33c482aa4","_id":"jsdom-global@2.1.1","_shasum":"47d46fe77f6167baf5d34431d3bb59fc41b0915a","_from":".","_npmVersion":"4.0.3","_nodeVersion":"6.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"47d46fe77f6167baf5d34431d3bb59fc41b0915a","size":4537,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-2.1.1.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsdom-global-2.1.1.tgz_1482524743073_0.6456480417400599"},"directories":{},"publish_time":1482524743309,"_hasShrinkwrap":false,"_cnpm_publish_time":1482524743309,"_cnpmcore_publish_time":"2021-12-16T12:27:16.789Z"},"2.1.0":{"name":"jsdom-global","version":"2.1.0","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js && standard"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"9.0.0","standard":"7.0.1","tape":"4.4.0"},"gitHead":"79f4d0bcd0458476292d6162c91e41634c642ff2","_id":"jsdom-global@2.1.0","_shasum":"70ba3fddb5a735dac886c49bb1168fa04a10e8dc","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"70ba3fddb5a735dac886c49bb1168fa04a10e8dc","size":4485,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-2.1.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsdom-global-2.1.0.tgz_1471858179381_0.9433165029622614"},"directories":{},"publish_time":1471858179608,"_hasShrinkwrap":false,"_cnpm_publish_time":1471858179608,"_cnpmcore_publish_time":"2021-12-16T12:27:17.016Z"},"2.0.0":{"name":"jsdom-global","version":"2.0.0","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js && standard"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"9.0.0","standard":"7.0.1","tape":"4.4.0"},"gitHead":"4482bc95bef2f31647135ade546ed98dec8e3f9e","_id":"jsdom-global@2.0.0","_shasum":"ef7451defd3d1d5f37bc3e04b94821e47c6a50cb","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"ef7451defd3d1d5f37bc3e04b94821e47c6a50cb","size":3440,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-2.0.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jsdom-global-2.0.0.tgz_1463151086172_0.7895948658697307"},"directories":{},"publish_time":1463151089525,"_hasShrinkwrap":false,"_cnpm_publish_time":1463151089525,"_cnpmcore_publish_time":"2021-12-16T12:27:17.501Z"},"1.7.0":{"name":"jsdom-global","version":"1.7.0","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"9a84366cd5f40f420ee12bd3ccb66c610c1b2dc8","_id":"jsdom-global@1.7.0","_shasum":"9967b409be715cf7fcf04bfd37945b945b494d52","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"9967b409be715cf7fcf04bfd37945b945b494d52","size":3199,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.7.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/jsdom-global-1.7.0.tgz_1458549274673_0.599501051241532"},"directories":{},"publish_time":1458549275135,"_hasShrinkwrap":false,"_cnpm_publish_time":1458549275135,"_cnpmcore_publish_time":"2021-12-16T12:27:17.713Z"},"1.6.2":{"name":"jsdom-global","version":"1.6.2","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"c6c0eaec9f1db6a12787c91f6fcdfb96b6a27762","_id":"jsdom-global@1.6.2","_shasum":"bc17cf2d76736453bd696b2c8b89dcf5f7ad6773","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"bc17cf2d76736453bd696b2c8b89dcf5f7ad6773","size":3057,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.6.2.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/jsdom-global-1.6.2.tgz_1456152329556_0.1407576019410044"},"directories":{},"publish_time":1456152333555,"_hasShrinkwrap":false,"_cnpm_publish_time":1456152333555,"_cnpmcore_publish_time":"2021-12-16T12:27:17.945Z"},"1.6.1":{"name":"jsdom-global","version":"1.6.1","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"4e94cd8b8fb1dfa9ac9f786f0a3ae84274bc73c4","_id":"jsdom-global@1.6.1","_shasum":"e7bf5378da85655f4364df93a4ad03eca655cda3","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"e7bf5378da85655f4364df93a4ad03eca655cda3","size":3021,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.6.1.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1452805225570,"_hasShrinkwrap":false,"_cnpm_publish_time":1452805225570,"_cnpmcore_publish_time":"2021-12-16T12:27:18.191Z"},"1.5.0":{"name":"jsdom-global","version":"1.5.0","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"7aad5a27d386f1996e61774fa764446245b72381","_id":"jsdom-global@1.5.0","_shasum":"7f5ccde7b010f975c99812bcf37a0a71a7b22e07","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"7f5ccde7b010f975c99812bcf37a0a71a7b22e07","size":2861,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.5.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1452601821233,"_hasShrinkwrap":false,"_cnpm_publish_time":1452601821233,"_cnpmcore_publish_time":"2021-12-16T12:27:18.396Z"},"1.4.0":{"name":"jsdom-global","version":"1.4.0","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"cb0c43a2751700fbe0eb341a7c3983fbcdde2ed4","_id":"jsdom-global@1.4.0","_shasum":"b64eead041b5e51cd21ffff35be7bf2d69a0d8a0","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"b64eead041b5e51cd21ffff35be7bf2d69a0d8a0","size":2998,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.4.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1452601545025,"_hasShrinkwrap":false,"_cnpm_publish_time":1452601545025,"_cnpmcore_publish_time":"2021-12-16T12:27:18.625Z"},"1.3.0":{"name":"jsdom-global","version":"1.3.0","description":"Enable DOM in Node.js","main":"index.js","browser":"browser.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"511e7bdeca2dc8c7bba66a1e36efff6337a6813f","_id":"jsdom-global@1.3.0","_shasum":"a83f85352a4c7a6046b2cae3f7f1e7eca08d4215","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"a83f85352a4c7a6046b2cae3f7f1e7eca08d4215","size":2506,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.3.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1452502604490,"_hasShrinkwrap":false,"_cnpm_publish_time":1452502604490,"_cnpmcore_publish_time":"2021-12-16T12:27:18.899Z"},"1.2.0":{"name":"jsdom-global","version":"1.2.0","description":"Enable DOM in Node.js","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"d4a17a41e8ee5605394b99d418d07036a9951722","_id":"jsdom-global@1.2.0","_shasum":"b33ca4fd1bacc57e8257266ab39cf70f8c3b7e88","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"b33ca4fd1bacc57e8257266ab39cf70f8c3b7e88","size":2368,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.2.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1452487702286,"_hasShrinkwrap":false,"_cnpm_publish_time":1452487702286,"_cnpmcore_publish_time":"2021-12-16T12:27:19.098Z"},"1.1.0":{"name":"jsdom-global","version":"1.1.0","description":"Enable DOM in Node.js","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"6ba53d4933cd8b614ef79214e4c42f5268e7262f","_id":"jsdom-global@1.1.0","_shasum":"15c161c99dd23769ecd02faf4968370d56558241","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"15c161c99dd23769ecd02faf4968370d56558241","size":2324,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.1.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1452482244089,"_hasShrinkwrap":false,"_cnpm_publish_time":1452482244089,"_cnpmcore_publish_time":"2021-12-16T12:27:19.339Z"},"1.0.0":{"name":"jsdom-global","version":"1.0.0","description":"Enable DOM in Node.js","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/jsdom-global.git"},"keywords":["jsdom","dom","test"],"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"license":"MIT","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"homepage":"https://github.com/rstacruz/jsdom-global#readme","devDependencies":{"jsdom":"7.2.2","tape":"4.4.0"},"gitHead":"a1f4869278b01348880e45ff41e0ebfc23eda2c3","_id":"jsdom-global@1.0.0","_shasum":"e0cef7712478a89b3b0bd717d2d84f4010ef7ce5","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"e0cef7712478a89b3b0bd717d2d84f4010ef7ce5","size":2106,"noattachment":false,"key":"/jsdom-global/-/jsdom-global-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsdom-global/download/jsdom-global-1.0.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1452481835581,"_hasShrinkwrap":false,"_cnpm_publish_time":1452481835581,"_cnpmcore_publish_time":"2021-12-16T12:27:19.629Z"}},"readme":"# jsdom-global\n\n> Enables DOM in Node.js\n\njsdom-global will inject `document`, `window` and other DOM API into your Node.js environment. Useful for running, in Node.js, tests that are made for browsers.\n\n[![Status](https://travis-ci.org/rstacruz/jsdom-global.svg?branch=master)](https://travis-ci.org/rstacruz/jsdom-global \"See test builds\")\n\n## Install\n\nRequires [jsdom][].\n\n```\nnpm install --save-dev --save-exact jsdom jsdom-global\n```\n\n[jsdom]: https://github.com/tmpvar/jsdom\n\n## Note\n\njsdom-global now requires jsdom v10 or above. If you need jsdom v9 and below, use the previous version (`jsdom-global@2`).\n\n## Usage\n\nJust invoke it to turn your Node.js environment into a DOM environment.\n\n```js\nrequire('jsdom-global')()\n\n// you can now use the DOM\ndocument.body.innerHTML = 'hello'\n```\n\nYou may also pass parameters to jsdomGlobal() like so: `require('jsdom-global')(html, options)`.\nCheck the [jsdom.jsdom()][] documentation for valid values for the `options` parameter.\n\nTo clean up after itself, just invoke the function it returns.\n\n```js\nvar cleanup = require('jsdom-global')()\n\n// do things\n\ncleanup()\n```\n\n## Tape\n\nIn [tape][], run it before your other tests.\n\n```js\nrequire('jsdom-global')()\n\ntest('your tests', (t) => {\n  /* and so on... */\n})\n```\n\n## Mocha\n\n__Simple:__ Use Mocha's `--require` option. Add this to the `test/mocha.opts` file (create it if it doesn't exist)\n\n```\n-r jsdom-global/register\n```\n\n__Advanced:__ For finer control, you can instead add it via [mocha]'s `before` and `after` hooks.\n\n```js\nbefore(function () {\n  this.jsdom = require('jsdom-global')()\n})\n\nafter(function () {\n  this.jsdom()\n})\n```\n\n[tape]: https://github.com/substack/tape\n[mocha]: https://mochajs.org/\n[jsdom.jsdom()]: https://github.com/tmpvar/jsdom/#for-the-hardcore-jsdomjsdom\n\n## ES2015\n\nIf you prefer to use `import` rather than `require`, you might want to use `jsdom-global/register` instead. Place it on top of your other import calls.\n\n```js\nimport 'jsdom-global/register'\nimport React from 'react'\nimport jQuery from 'jquery'\n// ...\n```\n\n## Browserify\n\nIf you use [Browserify] on your tests (eg: [smokestack], [tape-run], [budo], [hihat], [zuul], and so on), doing `require('jsdom-global')()` is a noop. In practice, this means you can use jsdom-global even if your tests are powered by browserify, and your test will now work in both the browser and Node.\n\n[zuul]: https://www.npmjs.com/package/zuul\n[tape-run]: https://www.npmjs.com/package/tape-run\n[budo]: https://github.com/mattdesl/budo\n[hihat]: https://www.npmjs.com/package/hihat\n[smokestack]: https://www.npmjs.com/package/smokestack\n\n* Writing your tests (`test.js`):\n\n  ```js\n  require('jsdom-global')()\n\n  // ...do your tests here\n  ```\n\n* Running it with [smokestack]:\n\n  ```sh\n  browserify test.js | smokestack          # run in a browser\n  node test.js                             # or the console\n  browserify test.js --no-bundle-external  # also works (but why bother?)\n  ```\n\n* Running it with Babel ([babelify] or [babel-cli]):\n\n  ```sh\n  browserify test.js -t babelify | smokestack  # run in a browser (with babel)\n  babel-node test.js                           # or the console\n  ```\n\n[Browserify]: http://browserify.org/\n[babel-cli]: https://babeljs.io/docs/usage/cli/\n[babelify]: https://github.com/babel/babelify\n\n## Thanks\n\n**jsdom-global** © 2016+, Rico Sta. Cruz. Released under the [MIT] License.<br>\nAuthored and maintained by Rico Sta. Cruz with help from contributors ([list][contributors]).\n\n> [ricostacruz.com](http://ricostacruz.com) &nbsp;&middot;&nbsp;\n> GitHub [@rstacruz](https://github.com/rstacruz) &nbsp;&middot;&nbsp;\n> Twitter [@rstacruz](https://twitter.com/rstacruz)\n\n[MIT]: http://mit-license.org/\n[contributors]: http://github.com/rstacruz/jsdom-global/contributors\n","_attachments":{},"homepage":"https://github.com/rstacruz/jsdom-global#readme","bugs":{"url":"https://github.com/rstacruz/jsdom-global/issues"},"license":"MIT"}