{"id":13440480,"url":"https://github.com/beaugunderson/ip-address","last_synced_at":"2025-12-12T05:57:34.855Z","repository":{"id":37602311,"uuid":"1495036","full_name":"beaugunderson/ip-address","owner":"beaugunderson","description":"💻 a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript","archived":false,"fork":false,"pushed_at":"2024-10-10T20:34:28.000Z","size":3186,"stargazers_count":591,"open_issues_count":35,"forks_count":73,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-11T00:29:50.068Z","etag":null,"topics":["ipv4","ipv6","javascript"],"latest_commit_sha":null,"homepage":"http://ip-address.js.org/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beaugunderson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-03-18T06:49:04.000Z","updated_at":"2025-05-06T01:48:28.000Z","dependencies_parsed_at":"2023-02-09T23:20:14.001Z","dependency_job_id":"ba615973-aec4-4e7d-a651-f3b2c6f4c787","html_url":"https://github.com/beaugunderson/ip-address","commit_stats":{"total_commits":410,"total_committers":26,"mean_commits":15.76923076923077,"dds":"0.14146341463414636","last_synced_commit":"9d71112336c3b38faad691500ee384af1661bc9b"},"previous_names":["beaugunderson/javascript-ipv6"],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaugunderson%2Fip-address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaugunderson%2Fip-address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaugunderson%2Fip-address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beaugunderson%2Fip-address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beaugunderson","download_url":"https://codeload.github.com/beaugunderson/ip-address/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253501674,"owners_count":21918316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipv4","ipv6","javascript"],"created_at":"2024-07-31T03:01:23.155Z","updated_at":"2025-12-12T05:57:34.812Z","avatar_url":"https://github.com/beaugunderson.png","language":"TypeScript","readme":"[![CircleCI](https://dl.circleci.com/status-badge/img/circleci/9fJmTZfn8d8p7GtVt688PY/JjriGjhcxBD6zYKygMZaet/tree/master.svg?style=svg\u0026circle-token=7baede7efd3db5f1f25fb439e97d5f695ff76318)](https://dl.circleci.com/status-badge/redirect/circleci/9fJmTZfn8d8p7GtVt688PY/JjriGjhcxBD6zYKygMZaet/tree/master)\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### Upgrading from 9.x to 10.x\n\nThe dependency on `jsbn` was removed thanks to\n[michal-kocarek](https://github.com/michal-kocarek). Thanks Michal! For\nclarity, all methods with BigInteger in the name were renamed to BigInt.\n\n#### Breaking changes\n\n- `#fromBigInteger()` → `#fromBigInt()`; now returns a native BigInt\n- `#bigInteger()` → `#bigInt()`; now returns a native BigInt\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","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaugunderson%2Fip-address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeaugunderson%2Fip-address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaugunderson%2Fip-address/lists"}