1.1.2 • Published 12 months ago

internet-address v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

internet-address

This is a tiny IPv4 and IPv6 utility library forked from ipaddr.js.

Requires Node.js 18, 20 or above.

Highlights

Tree-Shaking

internet-address supports tree shaking meaning you can pull in only the functionality you need versus ipaddr.js's all or nothing approach.

Small Bundle Size

Pulling in every module costs under 3KiB minified and gzipped. This package supports tree shaking however meaning if you only need IPv4 parsing for example, it'll only cost you 1.1KiB instead of the full 3KiB.

Browser Support

This package is written in standard ESM using only JavaScript builtins meaning it can be imported into browsers via a CDN without Node.js polyfills:

import { IPv4, IPv6, CIDR, process, subnetMatch } from "https://esm.sh/internet-address"

No Unnecessary Abstractions

An IPv4 address is an array of 4 bytes so IPv4.parse() returns you a Uint8Array of 4 bytes. No need for serialization, the data type is already in its basic form.

Usage

Install with npm install internet-address. Make sure you have "type": "module" in your package.json.

Import the utilities with:

import { IPv4, IPv6, CIDR, process, subnetMatch } from "internet-address"

Documentation can be found on TS Docs.

1.1.2-7b34905

1 year ago

1.1.2-42e4347

1 year ago

1.1.2-6cb5060

1 year ago

1.1.2

1 year ago

1.1.2-f9a3e07

1 year ago

1.1.2-d73f134

1 year ago

1.1.2-8d160e5

1 year ago

1.1.3-34f665b

12 months ago

1.1.3-3b063e6

1 year ago

1.1.2-71a25fe

1 year ago

1.1.2-eceaf7e

1 year ago

1.1.2-1d5d4fb

1 year ago

1.1.2-eda39ac

1 year ago

1.1.2-6f04b1a

1 year ago

1.1.2-774d722

1 year ago

1.1.2-c1030f4

1 year ago

1.1.1

2 years ago

1.0.1-cba9930

2 years ago

1.1.0

2 years ago

1.1.1-fd20488

2 years ago

1.1.1-20ad3f1

2 years ago

1.1.2-120eda3

2 years ago

1.0.1-c063d09

2 years ago

1.0.1-3b4e01f

2 years ago

1.0.1-886a7dd

2 years ago

1.0.1-ee8a3cd

2 years ago

1.0.0

2 years ago

0.0.1-fa1e679

2 years ago

0.0.1-1b6d510

2 years ago

1.0.1-ff918df

2 years ago

0.0.1-2fceaa2

2 years ago

0.1.0-3d316e0

2 years ago

0.1.0-d6c14fe

2 years ago

0.1.0-b33e011

2 years ago

0.1.0-8e77bbc

2 years ago

0.1.0-e26d988

2 years ago

0.1.0-ab5a1f3

2 years ago

0.0.1-6e2d93b

2 years ago