Skip to content

Lightweight library for HTML form fields validation

Notifications You must be signed in to change notification settings

asaje379/form-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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),
]);

About

Lightweight library for HTML form fields validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published