Skip to main content
Module

x/leaves/mod.ts>validator.IsByteLength

A Web framework For Deno with Decorator and middleware
Latest
function validator.IsByteLength
import { validator } from "https://deno.land/x/leaves@v0.1.5/mod.ts";
const { IsByteLength } = validator;

Checks if the string's length (in bytes) falls in a range. If given value is not a string, then it returns false.

Parameters

min: number
optional
max: number
optional
validationOptions: ValidationOptions

Returns

PropertyDecorator