</>PackageGraphPackageGraph

ip-address

npmv10.7.0TypeScript

A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

Safe to adopt

Yes — ip-address scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 12 days ago. 15 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 12 days ago. 15 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 350 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding ip-address to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

350 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >= 12
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the ip-address README.

import { Address4, Address6 } from 'ip-address';

// Validation
Address4.isValid('192.168.1.1');           // true
Address6.isValid('2001:db8::1');           // true
Address6.isValid('not an address');        // false

// Parsing (throws AddressError on invalid input)
const v4 = new Address4('192.168.1.1/24');
const v6 = new Address6('2001:db8::1/64');

// Subnet membership
const host = new Address4('192.168.1.42');
const network = new Address4('192.168.1.0/24');
Example truncated — see the full README.

ip-address vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
ip-addressthis page03MIT12 days ago
netmask19.5M1MIT1 day ago
ipaddr.js121.8M2MIT1 day ago
moment31.5M2MIT1 day ago
yn30.3M1MIT1 day ago
query-string22.1M3MIT1 day ago

Dependencies

Declared by ip-address v10.7.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (21)

@types/chai ^5.2.3@types/mocha ^10.0.10@typescript-eslint/eslint-plugin ^8.59.1@typescript-eslint/parser ^8.59.1c8 ^11.0.0chai ^6.2.2eslint ^8.57.1eslint-config-airbnb-base ^15.0.0eslint-config-prettier ^10.1.8eslint-plugin-filenames ^1.3.2eslint-plugin-import ^2.32.0eslint-plugin-prettier ^5.5.5eslint-plugin-sort-imports-es6-autofix ^0.6.0eslint_d ^14.0.4mocha ^11.7.5monocart-coverage-reports ^2.12.11prettier ^3.8.3source-map-support ^0.5.21tsx ^4.21.0typedoc ^0.28.19typescript <5.6.0

Used by

Popular packages that depend on ip-address.

Relationship graph

Dependencies (left) and dependents (right) of ip-address.

socksexpress-rate-limit@npmcli/agentip-address
ip-address dependencies dependents

Frequently installed together

Release history

12 releases in the last two years, typically about 2 days apart.

Recent versions of ip-address
VersionPublishedSizeLicense
10.7.0latest12 days ago350 KBMIT
10.6.012 days ago336 KBMIT
10.5.112 days ago304 KBMIT
10.5.01 month ago301 KBMIT
10.4.01 month ago293 KBMIT
10.3.11 month ago287 KBMIT
10.3.01 month ago284 KBMIT
10.2.21 month ago285 KBMIT
10.2.11 month ago279 KBMIT
10.2.04 months ago264 KBMIT
10.1.14 months ago178 KBMIT
10.1.010 months ago176 KBMIT
10.0.11 year ago172 KBMIT
10.0.01 year ago172 KBMIT
9.1.0-01 year ago172 KBMIT

Overview

ip-address is an npm package that a library for parsing IPv4 and IPv6 IP addresses in node and the browser. It has 3 known dependents in the graph. The latest version is 10.7.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a library for parsing IPv4 and IPv6 IP addresses in node and the browser and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (21 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use ip-address?

Yes — ip-address scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 12 days ago. 15 releases in the last 2 years.

How do I install ip-address?

Run `npm install ip-address` to add ip-address to your npm project.

What license is ip-address released under?

ip-address is distributed under the MIT license.

How popular is ip-address?

npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on ip-address.

Is ip-address still maintained?

The most recent release of ip-address (v10.7.0) was published 12 days ago.

Does ip-address run install scripts?

No. ip-address does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.