1.3.2 • Published 1 year ago
@technical_user/validation v1.3.2
Installation
Using npm
$ npm i -g npm
$ npm i @technical_user/validation
Usage
const validation = new Validation()
interface:
export interface IValidation {
isMail(email: string): boolean;
hasUperCase(str: string): boolean;
hasLowerCase(str: string): boolean;
hasNumber(str: string): boolean;
isEmpty(str?: string): boolean;
isNumber(str: string): boolean;
isDate(str: string, local?: Local): boolean;
isUrl(uri: string): boolean;
isDateValidation(date: string): boolean;
hasAlpha(value: string): boolean;
hasSpecial(value: string): boolean;
hasSpecialDate(value: string): boolean;
checkIsDate(value: string): boolean;
}