{"_id":"get-doc","_rev":"445516","name":"get-doc","description":"Get document, if there’s DOM.","dist-tags":{"latest":"1.0.4"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"time":{"modified":"2021-08-05T06:45:03.000Z","created":"2015-01-25T10:20:20.003Z","1.0.4":"2017-07-24T18:50:32.796Z","1.0.3":"2015-01-25T13:53:25.635Z","1.0.2":"2015-01-25T13:37:34.693Z","1.0.1":"2015-01-25T10:36:29.050Z","1.0.0":"2015-01-25T10:20:20.003Z"},"users":{"rubiadias":true},"author":{"name":"Deema Ywanov"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/get-doc.git"},"versions":{"1.0.4":{"name":"get-doc","version":"1.0.4","description":"Get document, if there’s DOM.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/get-doc.git"},"keywords":["document","DOM","has-dom","node","browser","detect","environment","get-document"],"author":{"name":"Deema Ywanov"},"license":"Unlicense","bugs":{"url":"https://github.com/dfcreative/get-doc/issues"},"homepage":"https://github.com/dfcreative/get-doc","dependencies":{"has-dom":"~1.0.0"},"gitHead":"0a7e53e69d0da16c6e3f778441d2e42f952d3a69","_id":"get-doc@1.0.4","_shasum":"fc432388b45e860d3e66bc7abfb41cda9b4d6fd7","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"fc432388b45e860d3e66bc7abfb41cda9b4d6fd7","size":1594,"noattachment":false,"key":"/get-doc/-/get-doc-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-doc/download/get-doc-1.0.4.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-doc-1.0.4.tgz_1500922231825_0.17343021114356816"},"directories":{},"publish_time":1500922232796,"_hasShrinkwrap":false,"_cnpm_publish_time":1500922232796},"1.0.3":{"name":"get-doc","version":"1.0.3","description":"Get document, if there’s DOM.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/dfcreative/get-doc"},"keywords":["document","DOM","has-dom","node","browser","detect","environment","get-document"],"author":{"name":"Deema Ywanov"},"license":"Unlicensed","bugs":{"url":"https://github.com/dfcreative/get-doc/issues"},"homepage":"https://github.com/dfcreative/get-doc","dependencies":{"has-dom":"~1.0.0"},"_id":"get-doc@1.0.3","dist":{"shasum":"eca054a585837663291bf10b6d5d25bc5de45d88","size":1574,"noattachment":false,"key":"/get-doc/-/get-doc-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-doc/download/get-doc-1.0.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"directories":{},"publish_time":1422194005635,"_cnpm_publish_time":1422194005635,"_hasShrinkwrap":false},"1.0.2":{"name":"get-doc","version":"1.0.2","description":"Get document, if there’s DOM.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/dfcreative/get-doc"},"keywords":["document","DOM","has-dom","node","browser","detect","environment","get-document"],"author":{"name":"Deema Ywanov"},"license":"Unlicensed","bugs":{"url":"https://github.com/dfcreative/get-doc/issues"},"homepage":"https://github.com/dfcreative/get-doc","dependencies":{"has-dom":"~1.0.0"},"_id":"get-doc@1.0.2","dist":{"shasum":"2551b2bec5b59710983bef87719c8c773d9e7575","size":1515,"noattachment":false,"key":"/get-doc/-/get-doc-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-doc/download/get-doc-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"directories":{},"publish_time":1422193054693,"_cnpm_publish_time":1422193054693,"_hasShrinkwrap":false},"1.0.1":{"name":"get-doc","version":"1.0.1","description":"Get document, if has DOM.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/dfcreative/get-doc"},"keywords":["document","DOM","has-dom","node","browser","detect","environment","get-document"],"author":{"name":"Deema Ywanov"},"license":"Unlicensed","bugs":{"url":"https://github.com/dfcreative/get-doc/issues"},"homepage":"https://github.com/dfcreative/get-doc","dependencies":{"has-dom":"~1.0.0"},"_id":"get-doc@1.0.1","dist":{"shasum":"ec741e362e8595699778c14d123a3536c411e857","size":1478,"noattachment":false,"key":"/get-doc/-/get-doc-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-doc/download/get-doc-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"directories":{},"publish_time":1422182189050,"_cnpm_publish_time":1422182189050,"_hasShrinkwrap":false},"1.0.0":{"name":"get-doc","version":"1.0.0","description":"Get document, if has DOM.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/dfcreative/get-doc"},"keywords":["document","DOM","has-dom","node","browser","detect","environment","get-document"],"author":{"name":"Deema Ywanov"},"license":"Unlicensed","bugs":{"url":"https://github.com/dfcreative/get-doc/issues"},"homepage":"https://github.com/dfcreative/get-doc","dependencies":{"has-dom":"~1.0.0"},"_id":"get-doc@1.0.0","dist":{"shasum":"6df16349f6849224c36eebe635cc8f736058f9f1","size":1471,"noattachment":false,"key":"/get-doc/-/get-doc-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-doc/download/get-doc-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"directories":{},"publish_time":1422181220003,"_cnpm_publish_time":1422181220003,"_hasShrinkwrap":false}},"readme":"# get-doc\r\n\r\nReturn `document`, if there’s DOM. Just a way simpler than [get-document](https://github.com/webmodules/get-document). Use to avoid `document is undefined` error.\r\n\r\n`$ npm isntall get-doc`\r\n\r\n```js\r\nvar doc = require('get-doc');\r\n\r\ndoc; //`document` in browser, `null` in node\r\n```\r\n\r\n[![NPM](https://nodei.co/npm/get-doc.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/get-doc/)\r\n\r\n<a href=\"UNLICENSE\"><img src=\"http://upload.wikimedia.org/wikipedia/commons/6/62/PD-icon.svg\" width=\"20\"/></a>","_attachments":{},"homepage":"https://github.com/dfcreative/get-doc","bugs":{"url":"https://github.com/dfcreative/get-doc/issues"},"license":"Unlicense"}