ng-validator-library
v1.0.2
Published
A validator library for TypeScript
Downloads
7
Maintainers
Readme
Validator Library
Description
This is a starter project for a TypeScript library. It uses pnpm as the package manager, Jest for testing, Babel for transpiling, and TypeScript for type checking.
Usage
import { isString } from 'ng-validator-library';
const username: string = 'john_doe';
console.log(isString(username)); // { isValid: true, message: 'The value is a string' }
List of validators
- isString
- isEmail
- isNumber
- isBoolean
- isSpecialCharacter
- isEmpty
- isUndefined
- isNull
- minLength
- maxLength
Clone the repository
git clone https://github.com/gomeznahuel/validator-library.git
Install the library
pnpm install ng-validator-library