@asaje/form-validator
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Validator

Description

A tool for easily validate a value based on specific schemas

Installation

npm i @asaje/form-validator

or

yarn add @asaje/form-validator

How to use

import { Validator } from '@asaje/form-validator';

const result = Validator.validate('hello', [
  Validator.required(),
  Validator.alpha(),
  Validator.minLength(5),
  Validator.maxLength(12),
]);

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @asaje/form-validator

    Weekly Downloads

    1

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    6.43 kB

    Total Files

    8

    Last publish

    Collaborators

    • asaje379