{"name":"ip-address","description":"A library for parsing IPv4 and IPv6 IP addresses in node and the browser.","dist-tags":{"latest":"9.0.5"},"versions":{"9.0.5":{"name":"ip-address","description":"A library for parsing IPv4 and IPv6 IP addresses in node and the browser.","version":"9.0.5","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com","url":"https://beaugunderson.com/"},"license":"MIT","main":"dist/ip-address.js","types":"dist/ip-address.d.ts","scripts":{"docs":"documentation build --github --output docs --format html ./ip-address.js","build":"rm -rf dist; mkdir dist; tsc","prepack":"npm run build","release":"release-it","test-ci":"nyc mocha","test":"mocha","watch":"mocha --watch"},"nyc":{"extension":[".ts"],"exclude":["**/*.d.ts",".eslintrc.js","coverage/","dist/","test/","tmp/"],"reporter":["html","lcov","text"],"all":true},"engines":{"node":">= 12"},"repository":{"type":"git","url":"git://github.com/beaugunderson/ip-address.git"},"dependencies":{"jsbn":"1.1.0","sprintf-js":"^1.1.3"},"devDependencies":{"@types/chai":"^4.2.18","@types/jsbn":"^1.2.31","@types/mocha":"^10.0.1","@types/sprintf-js":"^1.1.2","@typescript-eslint/eslint-plugin":"^6.7.2","@typescript-eslint/parser":"^6.7.2","browserify":"^17.0.0","chai":"^4.3.4","codecov":"^3.8.2","documentation":"^14.0.2","eslint":"^8.50.0","eslint-config-airbnb":"^19.0.4","eslint-config-prettier":"^9.0.0","eslint-plugin-filenames":"^1.3.2","eslint-plugin-import":"^2.23.4","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-prettier":"^5.0.0","eslint-plugin-react":"^7.24.0","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-sort-imports-es6-autofix":"^0.6.0","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"^3.0.3","release-it":"^16.2.0","source-map-support":"^0.5.19","ts-node":"^10.0.0","typescript":"^5.2.2"},"_id":"ip-address@9.0.5","gitHead":"9a1a7c401ed754a978f7a0fe8dd352eb413798b9","bugs":{"url":"https://github.com/beaugunderson/ip-address/issues"},"_nodeVersion":"20.5.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==","shasum":"117a960819b08780c3bd1f14ef3c1cc1d3f3ea5a","tarball":"http://localhost:4260/ip-address/ip-address-9.0.5.tgz","fileCount":48,"unpackedSize":176898,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNoc2Yy0JaKBF+Joty0BBRQcnRUG4ICPaOpH4yTyUbWAiEA7SKD3LwAgTXzKjv7bmWgSda6xzxDgZ21Q+QVyXIUauc="}]},"directories":{},"_hasShrinkwrap":false}},"readme":"![CircleCI](https://img.shields.io/circleci/build/github/beaugunderson/ip-address)\n[![codecov]](https://codecov.io/github/beaugunderson/ip-address?branch=master)\n[![downloads]](https://www.npmjs.com/package/ip-address)\n[![npm]](https://www.npmjs.com/package/ip-address)\n[![snyk]](https://snyk.io/test/github/beaugunderson/ip-address)\n\n[codecov]: https://codecov.io/github/beaugunderson/ip-address/coverage.svg?branch=master\n[downloads]: https://img.shields.io/npm/dm/ip-address.svg\n[npm]: https://img.shields.io/npm/v/ip-address.svg\n[snyk]: https://snyk.io/test/github/beaugunderson/ip-address/badge.svg\n\n## ip-address\n\n`ip-address` is a library for validating and manipulating IPv4 and IPv6\naddresses in JavaScript.\n\n\n### Migrating from 6.x to 7.x\n\n`ip-address` was rewritten in TypeScript for version 7. If you were using\nversion 6 you'll need to make these changes to upgrade:\n\n- Instead of checking `isValid()`, which has been removed, you'll need to use a\n `try`/`catch` if you're accepting unknown input. This made the TypeScript\n types substantially easier as well as allowed the use of an `AddressError`\n class which will contain a `parseMessage` if an error occurred in the parsing\n step.\n- Instead of using the `error`, `parseError`, and `valid` attributes you'll\n need to use the `message` and `parseMessage` of the thrown `AddressError`.\n\n### Documentation\n\nDocumentation is available at [ip-address.js.org](http://ip-address.js.org/).\n\n### Examples\n\n```js\nvar Address6 = require('ip-address').Address6;\n\nvar address = new Address6('2001