📄 README.md

← 返回目录

![CircleCI](https://dl.circleci.com/status-badge/redirect/circleci/9fJmTZfn8d8p7GtVt688PY/JjriGjhcxBD6zYKygMZaet/tree/master) ![codecov] ![downloads] ![npm] ![snyk]

[codecov]: https://codecov.io/github/beaugunderson/ip-address/coverage.svg?branch=master [downloads]: https://img.shields.io/npm/dm/ip-address.svg [npm]: https://img.shields.io/npm/v/ip-address.svg [snyk]: https://snyk.io/test/github/beaugunderson/ip-address/badge.svg

ip-address

ip-address is a library for validating and manipulating IPv4 and IPv6 addresses in JavaScript.

Upgrading from 9.x to 10.x

The dependency on jsbn was removed thanks to michal-kocarek. Thanks Michal! For clarity, all methods with BigInteger in the name were renamed to BigInt.

#### Breaking changes

- #fromBigInteger()#fromBigInt(); now returns a native BigInt

Features

- Usable via CommonJS or ESM

information](http://en.wikipedia.org/wiki/Teredo_tunneling#IPv6_addressing) in an address local address prefix, etc.) - Hex, binary, and decimal - Canonical form - Correct form - IPv4-compatible (i.e. ::ffff:192.168.0.1) @congressedits, among many others Contrail, a network virtualization solution made by Juniper Networks software quickly geolocating IP addresses automation bus hosted on Heroku implementation based on IPFS server written in JavaScript reading MaxMind database files protocol encoder/decoder built by Ably database API University of Portsmouth extension](https://chrome.google.com/webstore/detail/padekgcemlokbadohgkifijomclgjgif) for switching between multiple proxies with ~311k users! and used by Rackspace