Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/easyts/net/mod.ts>parseCIDR

js library written with ts, use select and chan like golang in js.
Latest
function parseCIDR
import { parseCIDR } from "https://deno.land/x/easyts@0.1.3/net/mod.ts";

parses s as a CIDR notation IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291.

Parameters

s: string

Returns

[IP, IPNet] | undefined