Skip to main content
Module

x/valibot/mod.ts>IpValidation

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface IpValidation
implements BaseValidation<TInput>
import { type IpValidation } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

IP validation type.

Type Parameters

TInput extends string

Properties

type: "ip"

The validation type.

requirement: [RegExp, RegExp]

The IPv4 and IPv6 regex.