Skip to content


MIT 81 1 1,461
84.0 million (month) Aug 15 2012 2.0.1(3 months ago)
1,168 2 9 MIT
Dec 28 2012 15.4 million (month) 0.6.1(7 months ago)

The "ip" library is a Node.js library that provides utility functions for working with IP addresses. It provides functions for parsing, validating, and converting IP addresses between different formats.

The "ip" library provides a simple and easy-to-use interface for working with IP addresses in Node.js. It can be useful in a variety of contexts, such as when creating a network-related application or when working with IP addresses in a web application.

httptools is a package for parsing and modifying HTTP protocol strings which supports HTTP1.1 and HTTP2 protocol versions.

httptools is a Python binding for the nodejs HTTP parser. The package is available on PyPI: pip install httptools

Example Use

const ip = require('ip');

// check IP validity:
console.log(ip.isV4Format('')); // true
console.log(ip.isV4Format('2001:0db8:85a3:0000:0000:8a2e:0370:7334')); // false

// check subnets
console.log(ip.cidrSubnet('')); // { networkAddress: '', broadcastAddress: '' }
console.log(ip.not('')); // ''

Alternatives / Similar

Was this page helpful?