cidrhas mark

@theworker02/cidrhas · JSR · 1.1.0

cidrhas

Runtime-neutral IPv4 CIDR parsing and containment utilities.

1.1.0JSRMITUniversal API

Overview

Test membership, inspect network boundaries, enumerate bounded ranges, and batch-check addresses.

Structured API

Canonical package: @theworker02/cidrhas

import { cidrHas, explain } from "@theworker02/cidrhas";
console.log(cidrHas("10.0.0.5", "10.0.0.0/8"));
console.log(explain("10.0.0.5", "10.0.0.0/8"));