1.0.2 • Published 1 year ago

ng-validator-library v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago