{"name":"ip-address","description":"A library for parsing IPv4 and IPv6 IP addresses in node and the browser.","keywords":["ipv6","ipv4","browser","validation"],"version":"5.9.2","author":{"name":"Beau Gunderson","email":"beau@beaugunderson.com","url":"https://beaugunderson.com/"},"license":"MIT","main":"ip-address.js","scripts":{"test":"mocha -R spec","docs":"documentation build --github --output docs --format html ./ip-address.js","prepublishOnly":"browserify ./ip-address-globals.js > ./dist/ip-address-globals.js"},"engines":{"node":">= 0.10"},"repository":{"type":"git","url":"git://github.com/beaugunderson/ip-address.git"},"dependencies":{"jsbn":"1.1.0","lodash":"^4.17.11","sprintf-js":"1.1.2"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","codecov.io":"^0.1.6","documentation":"^11.0.0","istanbul":"^0.4.5","mocha":"^6.1.4","mochify":"^6.2.0"},"gitHead":"a7d208681cdd8877c3e6e5e3e5fbfe9f2860cfc2","bugs":{"url":"https://github.com/beaugunderson/ip-address/issues"},"homepage":"https://github.com/beaugunderson/ip-address#readme","_id":"ip-address@5.9.2","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","_npmUser":{"name":"beaugunderson","email":"beau@beaugunderson.com"},"dist":{"integrity":"sha512-7aeFm/7oqo0mMhubTSjZ2Juw/F+WJ3hyfCScNVRQdz5RSRhw1Rj4ZlBFsmEajeKgQDI8asqVs31h8DpxEv7IfQ==","shasum":"8e7d2dab5cbf3cbf34e1f730ec6913f55fec8c74","tarball":"http://registry-npm.ywwl.com/ip-address/download/ip-address-5.9.2.tgz","fileCount":47,"unpackedSize":2382083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+As0CRA9TVsSAnZWagAAL10P/jwAVEdpnzYpAd8hgJDQ\nVZeqtuIoVTOp2YK0qi4S6pnazmhxKcHHSdD+lDOoi8LT9PB6QKPbonE/QkAm\nSPqu2Zxq9Tq4L0WqErDAIPWHJNleiRDJOp3t56BkBaOtnS/xVBAStrdoiPw+\nqd3Td8SNKpeJs7sG9B9jZ8MJcr4W/qdtWmWgmE2jcKOSwDEY70dBrnd+LrR7\nIrJD5rkgDkoaXLMbl72gC2Zw5L3YitoIG8LB4itt59rZTT2Kk5xO33Wk408n\nUd+4jhkJp+tr315n/kuw+Wq49j1KAPQygg4Nej21gzQMa16ATtuRjtdOrpL0\nJEZmiT7r4PgdMx7uUERHYs/L3HpI8YQNTM2QfdNg1Eul0l0WJ6eZTfo8b/jt\n02DJR3cab4+eP52ZVIdR2GHepiMZKe9j+kZMUJUGxZDPT2Mg4vH1Z16xWIUP\nMrGIetxpl4OW9k50Znstcx+BmyEz+cbrrlxqp+L6cpsQrT83ZWhIT8SZRkyK\nzIqHFiOpKfGcQGo3hE8nefWVI174oca7wQlYdf4kXGqcudweIU7AXrm6Qy6w\nIY84RTLuDIW/DBJBv1TvzcM9hMvZtDwI9BO0dkp62WEDiOP9nd3RA62+ryaT\naVMwIxb0FxUQekfwnOdVHYpPa5iCT26y1XXrO/cAF2A4Eq/1GdUG7x1lKbHR\nTpAN\r\n=vV8+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt/hoMS+FPH/x8TRBmMR1uB4oHsR2tb7KqSdmxJuTV9AIhAPrU2G5WI6PXm+r7YarVeREHlXuEQe0ptvxVquy2juxL"}],"size":1355998,"noattachment":false,"key":"/ip-address/-/ip-address-5.9.2.tgz"},"maintainers":[{"name":"beaugunderson","email":"beau@beaugunderson.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ip-address_5.9.2_1559759667640_0.26618977314977266"},"_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:0:ce49:7601:e866:efff:62c3:fffe');\n\nvar teredo = address.inspectTeredo();\n\nteredo.client4;    // '157.60.0.1'\n```\n\n### Features\n\n- Usable via CommonJS or ESM\n- Parsing of all IPv6 notations\n- Parsing of IPv6 addresses and ports from URLs with `Address6.fromURL(url)`\n- Validity checking\n- Decoding of the [Teredo\n  information](http://en.wikipedia.org/wiki/Teredo_tunneling#IPv6_addressing)\n  in an address\n- Whether one address is a valid subnet of another\n- What special properties a given address has (multicast prefix, unique\n  local address prefix, etc.)\n- Number of subnets of a certain size in a given address\n- Display methods\n  - Hex, binary, and decimal\n  - Canonical form\n  - Correct form\n  - IPv4-compatible (i.e. `::ffff:192.168.0.1`)\n- Works in [node](http://nodejs.org/) and the browser (with browserify)\n- ~1,600 test cases\n\n### Used by\n\n- [anon](https://github.com/edsu/anon) which powers\n  [@congressedits](https://twitter.com/congressedits), among\n  [many others](https://github.com/edsu/anon#community)\n- [base85](https://github.com/noseglid/base85): base85 encoding/decoding\n- [contrail-web-core](https://github.com/Juniper/contrail-web-core): part of\n  Contrail, a network virtualization solution made by Juniper Networks\n- [dhcpjs](https://github.com/apaprocki/node-dhcpjs): a DHCP client and server\n- [epochtalk](https://github.com/epochtalk/epochtalk): next generation forum\n  software\n- [geoip-web](https://github.com/tfrce/node-geoip-web): a server for\n  quickly geolocating IP addresses\n- [hexabus](https://github.com/mysmartgrid/hexabus): an IPv6-based home\n  automation bus\n- [hubot-deploy](https://github.com/atmos/hubot-deploy): GitHub Flow via hubot\n- [heroku-portscanner](https://github.com/robison/heroku-portscanner): nmap\n  hosted on Heroku\n- [ipfs-swarm](https://github.com/diasdavid/node-ipfs-swarm): a swarm\n  implementation based on IPFS\n- [javascript-x-server](https://github.com/GothAck/javascript-x-server): an X\n  server written in JavaScript\n- [libnmap](https://github.com/jas-/node-libnmap): a node API for nmap\n- [mail-io](https://github.com/mofux/mail-io): a lightweight SMTP server\n- [maxmind-db-reader](https://github.com/PaddeK/node-maxmind-db): a library for\n  reading MaxMind database files\n- [proxy-protocol-v2](https://github.com/ably/proxy-protocol-v2): a proxy\n  protocol encoder/decoder built by [Ably](https://www.ably.io/)\n- [Samsara](https://github.com/mariusGundersen/Samsara): a Docker web interface\n- [sis-api](https://github.com/sis-cmdb/sis-api): a configuration management\n  database API\n- [socks5-client](https://github.com/mattcg/socks5-client): a SOCKS v5 client\n- [socksified](https://github.com/vially/node-socksified): a SOCKS v5 client\n- [socksv5](https://github.com/mscdex/socksv5): a SOCKS v5 server/client\n- [ssdapi](https://github.com/rsolomou/ssdapi): an API created by the\n  University of Portsmouth\n- [SwitchyOmega](https://github.com/FelisCatus/SwitchyOmega): a [Chrome\n  extension](https://chrome.google.com/webstore/detail/padekgcemlokbadohgkifijomclgjgif)\n  for switching between multiple proxies with ~311k users!\n- [swiz](https://github.com/racker/node-swiz): a serialization framework built\n  and used by [Rackspace](http://www.rackspace.com/)\n","publish_time":1559759667870,"_cnpm_publish_time":1559759667870,"dist-tags":{"beta":"9.1.0-0","latest":"10.7.6"}}