{"_id":"has-dom","_rev":"445603","name":"has-dom","description":"Check if a JavaScript environment has a DOM","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-08-05T06:45:13.000Z","created":"2015-01-17T10:14:32.673Z","2.0.0":"2021-05-03T12:55:09.370Z","1.0.1":"2018-03-23T08:06:41.530Z","1.0.0":"2015-01-17T10:14:32.673Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/has-dom.git"},"versions":{"2.0.0":{"name":"has-dom","version":"2.0.0","description":"Check if a JavaScript environment has a DOM","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/has-dom.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["browsers","dom","js","javascript","env","environment","has","detect","check"],"devDependencies":{"ava":"^3.15.0","xo":"^0.39.1"},"xo":{"envs":["node","browser"]},"gitHead":"0a1e2ea4d950004b9d5920280f2579ee63785a1f","bugs":{"url":"https://github.com/sindresorhus/has-dom/issues"},"homepage":"https://github.com/sindresorhus/has-dom#readme","_id":"has-dom@2.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"88d2e135bbc4e3b468a6694510eb0957a9bf23d9","size":1403,"noattachment":false,"key":"/has-dom/-/has-dom-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-dom/download/has-dom-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-dom_2.0.0_1620046509010_0.16791822242954346"},"_hasShrinkwrap":false,"publish_time":1620046509370,"_cnpm_publish_time":1620046509370},"1.0.1":{"name":"has-dom","version":"1.0.1","description":"Check if a JavaScript environment has a DOM","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/has-dom.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"ava"},"files":["index.js"],"keywords":["browsers","dom","js","javascript","env","environment","has","detect","check"],"devDependencies":{"ava":"*"},"gitHead":"78702f3de3207d9c8faf1a61007fdbbdf870a765","bugs":{"url":"https://github.com/sindresorhus/has-dom/issues"},"homepage":"https://github.com/sindresorhus/has-dom#readme","_id":"has-dom@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8be153dd718868ebd3d74c7f9db3d401e1731400","size":1447,"noattachment":false,"key":"/has-dom/-/has-dom-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-dom/download/has-dom-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-dom_1.0.1_1521792401467_0.14303522510916644"},"_hasShrinkwrap":false,"publish_time":1521792401530,"_cnpm_publish_time":1521792401530},"1.0.0":{"name":"has-dom","version":"1.0.0","description":"Check if a JavaScript environment has a DOM","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/has-dom"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["browsers","dom","js","javascript","env","environment","has","detect","check"],"devDependencies":{"ava":"0.0.4"},"gitHead":"8721d742d09100dafb8513924ed715bfe3692129","bugs":{"url":"https://github.com/sindresorhus/has-dom/issues"},"homepage":"https://github.com/sindresorhus/has-dom","_id":"has-dom@1.0.0","_shasum":"c416023da347003a5fc6f667d70057350155b657","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"c416023da347003a5fc6f667d70057350155b657","size":787,"noattachment":false,"key":"/has-dom/-/has-dom-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-dom/download/has-dom-1.0.0.tgz"},"directories":{},"publish_time":1421489672673,"_cnpm_publish_time":1421489672673,"_hasShrinkwrap":false}},"readme":"# has-dom\n\n> Check if a JavaScript environment has a [DOM](https://en.wikipedia.org/wiki/Document_Object_Model)\n\n## Install\n\n```\n$ npm install has-dom\n```\n\n## Usage\n\n```js\nimport hasDom from 'has-dom';\n\n// In Node.js\nhasDom();\n//=> false\n\n// In the browser\nhasDom();\n//=> true\n```\n","_attachments":{},"homepage":"https://github.com/sindresorhus/has-dom#readme","bugs":{"url":"https://github.com/sindresorhus/has-dom/issues"},"license":"MIT"}