type alias Address

A plain IP address of either IP version.

This is a union of Addressv4 (number, 32-bit) and Addressv6 (bigint, 128-bit) -- the JS primitive type is what carries the version. Useful for functions that operate on addresses regardless of IP version; narrow with a typeof check.

Definition

Usage

import { type Address } from "classify.ts";