{"_id":"bogon","_rev":"239097","name":"bogon","description":"Check if an IP is a bogon","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2023-03-24T16:52:13.000Z","created":"2021-04-06T21:37:49.705Z","1.1.0":"2022-08-25T10:34:34.191Z","1.0.0":"2021-04-06T21:39:29.076Z","0.0.0":"2021-04-06T21:37:49.705Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/bogon.git"},"versions":{"1.1.0":{"name":"bogon","version":"1.1.0","description":"Check if an IP is a bogon","main":"index.js","scripts":{"test":"standard && brittle test.mjs"},"dependencies":{"compact-encoding":"^2.11.0","compact-encoding-net":"^1.2.0"},"devDependencies":{"brittle":"^3.0.4","nanobench":"^2.1.1","standard":"^17.0.0"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/bogon.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/bogon/issues"},"homepage":"https://github.com/mafintosh/bogon","gitHead":"be7473bad6260172a71dea5710a660961615750c","_id":"bogon@1.1.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"14234260353d8f806c3a307202f66698f635d18b","size":3170,"noattachment":false,"key":"/bogon/-/bogon-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/bogon/download/bogon-1.1.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bogon_1.1.0_1661423673973_0.3963356274149774"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-25T11:21:19.513Z","publish_time":1661423674191,"_cnpm_publish_time":1661423674191},"1.0.0":{"name":"bogon","version":"1.0.0","description":"Check if an IP is a bogon","main":"index.js","dependencies":{},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/mafintosh/bogon.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/bogon/issues"},"homepage":"https://github.com/mafintosh/bogon","gitHead":"f4048e89bdc1a7aeb17100d390971f24b713f356","_id":"bogon@1.0.0","_nodeVersion":"15.7.0","_npmVersion":"6.14.11","dist":{"shasum":"66b8cdd269f790e3aa988e157bb34d4ba75ee586","size":2081,"noattachment":false,"key":"/bogon/-/bogon-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/bogon/download/bogon-1.0.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bogon_1.0.0_1617745168883_0.9895031402400258"},"_hasShrinkwrap":false,"publish_time":1617745169076,"_cnpm_publish_time":1617745169076,"_cnpmcore_publish_time":"2021-12-16T22:49:55.945Z"},"0.0.0":{"name":"bogon","version":"0.0.0","description":"Check if an IP is a bogon","main":"index.js","dependencies":{},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/mafintosh/bogon.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/bogon/issues"},"homepage":"https://github.com/mafintosh/bogon","_id":"bogon@0.0.0","_nodeVersion":"15.7.0","_npmVersion":"6.14.11","dist":{"shasum":"6420ab1b94a8ec04b68be9dc872d5e80afb6de82","size":2081,"noattachment":false,"key":"/bogon/-/bogon-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/bogon/download/bogon-0.0.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bogon_0.0.0_1617745069576_0.5833715310373608"},"_hasShrinkwrap":false,"publish_time":1617745069705,"_cnpm_publish_time":1617745069705,"_cnpmcore_publish_time":"2021-12-16T22:49:56.227Z"}},"readme":"# bogon\n\nCheck if an IP is a bogon\n\n```\nnpm install bogon\n```\n\nhttps://ipinfo.io/bogon\n\n\n## Usage\n\n``` js\nconst bogon = require('bogon')\n\nconsole.log(bogon('192.168.0.1')) // true\nconsole.log(bogon('8.8.8.8')) // false\n```\n\nAs a utility it also exposes an `isPrivate` helper\nto detect if a bogon IP is a private IP address on a local network.\n\n``` js\nconsole.log(bogon.isPrivate('192.168.0.1')) // true\nconsole.log(bogon('224.0.1.1')) // true\nconsole.log(bogon.isPrivate('224.0.1.1')) // false\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/bogon","bugs":{"url":"https://github.com/mafintosh/bogon/issues"},"license":"MIT"}