{"maintainers":[{"name":"anonymous","email":"linus@folkdatorn.se"}],"dist-tags":{"latest":"1.0.1"},"description":"A small lib to validate IP addresses.","readme":"# Is my IP valid\n\nA small lib to validate IP addresses.\n\n## Installation\n\n```sh\nnpm install --save is-my-ip-valid\n```\n\n## Usage\n\n```js\nconst validator = require('is-my-ip-valid')\nconst validate = validator()\nconst validate4 = validator({ version: 4 })\nconst validate6 = validator({ version: 6 })\n\nconsole.log(validate('127.0.0.1'))\n//=> true\n\nconsole.log(validate4('127.0.0.1'))\n//=> true\n\nconsole.log(validate6('127.0.0.1'))\n//=> false\n\nconsole.log(validate('2001:0db8:85a3:0000:0000:8a2e:0370:7334'))\n//=> true\n\nconsole.log(validate4('2001:0db8:85a3:0000:0000:8a2e:0370:7334'))\n//=> false\n\nconsole.log(validate6('2001:0db8:85a3:0000:0000:8a2e:0370:7334'))\n//=> true\n```\n\n## Acknowledgements\n\nThe code is mostly based on this wonderful library: [beaugunderson/ip-address](https://github.com/beaugunderson/ip-address)\n\nAll regexes used are audited for catastrophic backtracking by this module: [substack/safe-regex](https://github.com/substack/safe-regex)\n","repository":{"type":"git","url":"git+https://github.com/LinusU/is-my-ip-valid.git"},"bugs":{"url":"https://github.com/LinusU/is-my-ip-valid/issues"},"license":"MIT","versions":{"1.0.0":{"name":"is-my-ip-valid","version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/is-my-ip-valid.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"safe-regex":"^1.1.0","standard":"^10.0.3"},"gitHead":"7341813a69408d3bc8d1ddfbfc89d4f9f8699da7","description":"A small lib to validate IP addresses.","bugs":{"url":"https://github.com/LinusU/is-my-ip-valid/issues"},"homepage":"https://github.com/LinusU/is-my-ip-valid#readme","_id":"is-my-ip-valid@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"anonymous","email":"linus@folkdatorn.se"},"dist":{"integrity":"sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==","shasum":"7b351b8e8edd4d3995d4d066680e664d94696824","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz","fileCount":8,"unpackedSize":19969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHnnWiMs/nzv+Ij1Z/631ZCde2EjR/Fw3NBpojA7b+TZAiEAz/fsT4wTb68wuS/Wq0SQxJDLeJUgLHVhiFa6jM1yvRo="}]},"maintainers":[{"name":"anonymous","email":"linus@folkdatorn.se"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-my-ip-valid_1.0.0_1518614195217_0.2894613088951574"},"_hasShrinkwrap":false},"1.0.1":{"name":"is-my-ip-valid","version":"1.0.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/is-my-ip-valid.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"safe-regex":"^1.1.0","standard":"^10.0.3"},"gitHead":"9c650fa3039f99293e45eb09df7829af1980afde","description":"A small lib to validate IP addresses.","bugs":{"url":"https://github.com/LinusU/is-my-ip-valid/issues"},"homepage":"https://github.com/LinusU/is-my-ip-valid#readme","_id":"is-my-ip-valid@1.0.1","_nodeVersion":"17.3.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-jxc8cBcOWbNK2i2aTkCZP6i7wkHF1bqKFrwEHuN5Jtg5BSaZHUZQ/JTOJwoV41YvHnOaRyWWh72T/KvfNz9DJg==","shasum":"f7220d1146257c98672e6fba097a9f3f2d348442","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/is-my-ip-valid/-/is-my-ip-valid-1.0.1.tgz","fileCount":9,"unpackedSize":21051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHkhOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgWw/7B6F2XG9zPrWbMMn4Zh+p6pRmgtcGJnhNcVUZen3UXs+OXAm2\r\nD66HcmNEklwFErdATrQnIK5ATGY4YFmU8RMlnHBeDcX0uO2erUOUzIFDxmg5\r\n8EqsBotbCFTyWIpCb9CanhYp/TcINsi06Vh9Y3UjC+swFlp3ThqF06b+OvxG\r\nzQccmmeSt1x9bv1ihPI7aI9vJZ0kPSttsKwccpiCsHJpTRAZTJzWWws/hkcv\r\nJPEqetVmqIBbpLl0o8g1HI7VIZWK0bMoNsZ7idlJJKSHBOupmHs/Geqv7Eiy\r\nm2ocCj7DS6HfP5+e/n55hVVXY8fZvYgzTGQ+bCBHzUuhfzzPAeEvoP/RNgkS\r\nhcqB2+0vo+dOlsYQGJbTcNWH7PSaN+JJb6kYIePM3cFrgwKEbnLUvMOn2nOw\r\nhA/WnK+TmIl1YJB3klOcEYNcIaiGHO6f4k9FHF1IqtaWEBPr8DV+4qVKez9H\r\n9sYRpdpNB3boY71tJLTyB/yefRfvzMec0d0jfvhb9/53gyWhSbfz/cJlgXOw\r\nRjC6gYNn4waCGNXq2cygTse5r7Ory+kL2JiIRP8W9OeJOZZMjrbNYYcYYuWz\r\n9pScf/K2MxD9/J5wlNL64yn+4eHMH2nNJ7PaYGUDp2K3bPkzpm49uh0A9MVi\r\nBDoWLzef8j2qeNWNiUvhqVZajf+sQiub2zQ=\r\n=YRHJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ653AEnsZL4PDTV7QlXfpGH9ETIK1rDlSg1sqwI69oQIgE/5FYgZUOamuG3bdcEl8piyB86J08dxh+PvgH1FUHeQ="}]},"_npmUser":{"name":"anonymous","email":"linus@folkdatorn.se"},"directories":{},"maintainers":[{"name":"anonymous","email":"linus@folkdatorn.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-my-ip-valid_1.0.1_1646151758383_0.4861271044908939"},"_hasShrinkwrap":false}},"name":"is-my-ip-valid","time":{"created":"2018-02-14T13:16:35.216Z","1.0.0":"2018-02-14T13:16:35.877Z","modified":"2022-05-06T05:07:25.540Z","1.0.1":"2022-03-01T16:22:38.522Z"},"readmeFilename":"readme.md","homepage":"https://github.com/LinusU/is-my-ip-valid#readme"}