# indutny/node-ip

IP address tools for node.js

Repository: https://github.com/indutny/node-ip
Canonical: https://ross.abutalabs.com/products/node-ip
Language: JavaScript
License Family: other
Last push: 2024-08-20T06:56:14+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5131, "days_push": 743, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1544, forks 228 (observed 2026-08-28T04:05:01.370823+00:00)

## What it is
A Node.js library providing IP address utilities for parsing, validating, comparing, and converting IPv4 and IPv6 addresses. It supports subnet calculations, CIDR operations, buffer conversions, and private-address detection.

## Use cases
- get the machine's local IP address in node.js
- validate whether a string is a valid IPv4 or IPv6 address
- calculate subnet information from a CIDR notation
- convert an IP address to a buffer or long integer and back
- check if an IP address is private
- compare two IP addresses for equality
- compute network and broadcast addresses from an IP and subnet mask

## When to choose
- you need lightweight IP address parsing and manipulation in a Node.js project
- you need subnet/CIDR math like network address, broadcast, or range containment checks
- you need to serialize IP addresses into buffers for network protocols

## When to avoid
- you need geolocation or public IP lookup - this library does not do network requests
- you are working outside Node.js (e.g., browser or Python)
- you need actively developed features or guaranteed security patches, as the project is in maintenance mode

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, networking, serialization
- domain: networking, developer-tools, backend
- platform: -
- tags: ip-address, ipv4, ipv6, subnet, cidr, npm, nodejs, javascript

## Member repositories
- indutny/node-ip (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.370823+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:38.338183+00:00, confidence not recorded.
  - readme: https://github.com/indutny/node-ip (fetched 2026-08-28T04:05:01.370823+00:00, sha 059fcdeafb68)
- Data as of 2026-08-30T08:39:29.467469+00:00.
