1.1.2 • Published 9 months ago

internet-address v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

10 months ago

1.1.2-42e4347

10 months ago

1.1.2-6cb5060

10 months ago

1.1.2

10 months ago

1.1.2-f9a3e07

10 months ago

1.1.2-d73f134

10 months ago

1.1.2-8d160e5

10 months ago

1.1.3-34f665b

9 months ago

1.1.3-3b063e6

10 months ago

1.1.2-71a25fe

10 months ago

1.1.2-eceaf7e

10 months ago

1.1.2-1d5d4fb

10 months ago

1.1.2-eda39ac

10 months 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

1 year ago

1.0.1-cba9930

1 year ago

1.1.0

1 year ago

1.1.1-fd20488

1 year ago

1.1.1-20ad3f1

1 year ago

1.1.2-120eda3

1 year ago

1.0.1-c063d09

1 year ago

1.0.1-3b4e01f

1 year ago

1.0.1-886a7dd

1 year ago

1.0.1-ee8a3cd

1 year ago

1.0.0

1 year ago

0.0.1-fa1e679

1 year ago

0.0.1-1b6d510

1 year ago

1.0.1-ff918df

1 year ago

0.0.1-2fceaa2

1 year ago

0.1.0-3d316e0

1 year ago

0.1.0-d6c14fe

1 year ago

0.1.0-b33e011

1 year ago

0.1.0-8e77bbc

1 year ago

0.1.0-e26d988

1 year ago

0.1.0-ab5a1f3

1 year ago

0.0.1-6e2d93b

2 years ago