 ![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 is a library for validating and manipulating IPv4 and IPv6
addresses in JavaScript.
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
#bigInteger() → #bigInt(); now returns a native BigIntDocumentation is available at ip-address.js.org.
var Address6 = require('ip-address').Address6;var address = new Address6('2001:0:ce49:7601:e866:efff:62c3:fffe');
var teredo = address.inspectTeredo();
teredo.client4; // '157.60.0.1'
- Usable via CommonJS or ESM
Address6.fromURL(url)::ffff:192.168.0.1)
@congressedits, among
many others