ip-address
npmv10.7.0TypeScriptA 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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');ip-address vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| ip-addressthis page | 0 | 3 | MIT | 12 days ago |
| netmask | 19.5M | 1 | MIT | 1 day ago |
| ipaddr.js | 121.8M | 2 | MIT | 1 day ago |
| moment | 31.5M | 2 | MIT | 1 day ago |
| yn | 30.3M | 1 | MIT | 1 day ago |
| query-string | 22.1M | 3 | MIT | 1 day ago |
Dependencies
Declared by ip-address v10.7.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (21)
Used by
Popular packages that depend on ip-address.
Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.
Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.
the http/https agent used by the npm cli
Relationship graph
Dependencies (left) and dependents (right) of ip-address.
Frequently installed together
Fast, unopinionated, minimalist web framework
Prettier is an opinionated code formatter
TypeScript execution environment and REPL for node.js, with source map support
TypeScript definitions for node
An extremely fast JavaScript and CSS bundler and minifier.
Delightful JavaScript Testing.
TypeScript definitions for debug
Lightweight debugging utility for Node.js and the browser
No description provided.
An AST-based pattern checker for JavaScript.
smart-buffer is a Buffer wrapper that adds automatic read & write offset tracking, string operations, data insertions, and more.
An HTTP(s) proxy `http.Agent` implementation for HTTPS
Release history
12 releases in the last two years, typically about 2 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 10.7.0latest | 12 days ago | 350 KB | MIT |
| 10.6.0 | 12 days ago | 336 KB | MIT |
| 10.5.1 | 12 days ago | 304 KB | MIT |
| 10.5.0 | 1 month ago | 301 KB | MIT |
| 10.4.0 | 1 month ago | 293 KB | MIT |
| 10.3.1 | 1 month ago | 287 KB | MIT |
| 10.3.0 | 1 month ago | 284 KB | MIT |
| 10.2.2 | 1 month ago | 285 KB | MIT |
| 10.2.1 | 1 month ago | 279 KB | MIT |
| 10.2.0 | 4 months ago | 264 KB | MIT |
| 10.1.1 | 4 months ago | 178 KB | MIT |
| 10.1.0 | 10 months ago | 176 KB | MIT |
| 10.0.1 | 1 year ago | 172 KB | MIT |
| 10.0.0 | 1 year ago | 172 KB | MIT |
| 9.1.0-0 | 1 year ago | 172 KB | MIT |
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
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.