1.0.2 • Published 1 year ago
ng-validator-library v1.0.2
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