Skip to main content
Module

x/leaves/mod.ts>validator.IsHash

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

Check if the string is a hash of type algorithm. Algorithm is one of ['md4', 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'ripemd128', 'ripemd160', 'tiger128', 'tiger160', 'tiger192', 'crc32', 'crc32b']

Parameters

algorithm: string
optional
validationOptions: ValidationOptions

Returns

PropertyDecorator