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

x/hono/validator/validator.ts>VString

Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
Extremely Popular
Go to Latest
class VString
extends VBase
import { VString } from "https://deno.land/x/hono@v2.5.5/validator/validator.ts";

Constructors

new
VString(options: VOptions)

Properties

asArray: () => unknown
contains: (elem: string, options?: Partial<{ ignoreCase: boolean; minOccurrences: number; }>) => unknown
isAlpha: () => unknown
isEmpty: (options?: { ignore_whitespace: boolean; }) => unknown
isIn: (options: string[]) => unknown
isLength: (options: Partial<{ min: number; max: number; }> | number, arg2?: number) => unknown
isNumeric: () => unknown
match: (regExp: RegExp) => unknown
trim: () => unknown