Skip to content

ip-address

604 1 37 MIT
10.1.0 (8 Nov 2025) May 05 2015 232.4 million (month)

The "ip-address" library is a Node.js library that provides utility functions for working with IP addresses, similar to "ip" library. It provides functions for parsing, validating, and converting IP addresses between different formats, both IPv4 and IPv6.

Example Use


```javascript const IPAddress = require("ip-address").Address;

// slice and manipulate addresses: const ipv4 = new IPAddress("192.168.1.1"); console.log(ipv4.addressMinusSuffix); // '192.168.1'

// validate addresses: console.log(IPAddress.isValid("192.168.1.1")); // true console.log(IPAddress.isValid("2001:0db8:85a3:0000:0000:8a2e:0370:7334")); // true ```

Alternatives / Similar


6,904 9.3.1 (2025-09-18 15:13:43 ago) Nov 13 2013 compare
ip
1,545 2.0.1 (2025-10-13 17:09:54 ago) Aug 15 2012 compare
6,239 0.1.3 (2022-06-28 06:09:19 ago) Jun 18 2013 compare

Other Languages

1,315 0.7.1 (2025-10-10 03:54:20 ago) Dec 28 2012 compare
1,486 1.3.1 (2026-03-04 18:05:49 ago) Feb 14 2011 compare
url
109 v2.2.0 (2026-01-06 19:06:56 ago) Apr 15 2018 compare
Was this page helpful?