{"_id":"bogon","_rev":"1257040","name":"bogon","description":"Check if an IP is a bogon","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-10-14T20:06:06.000Z","created":"2021-04-06T21:37:49.705Z","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.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://registry.cnpm.dingdandao.com/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},"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://registry.cnpm.dingdandao.com/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}},"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 addres 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"}