@ende/net/unstable-ip

ende add jsr:@ende/net

Version 2026.10.15 on JSR.

Exports

  • isIPv4 — Validates whether a given string is a valid IPv4 address.
  • isIPv6 — Validates whether a given string is a IPv6 address.
  • matchIPv4Subnet — Checks if an IPv4 address matches a subnet or specific IPv4 address.
  • matchIPv6Subnet — Checks if an IPv6 address matches a subnet or specific IPv6 address.
  • matchSubnets — Checks if an IP address matches a subnet or specific IP address.
  • parseIPv4 — Parses a string as an IPv4 address.
  • parseIPv6 — Parses a string as an IPv6 address.