0.1.1 • Published 1 year ago

@buildersbank/validations v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Welcome to Platform Builders Validations

Build Status codecov npm MIT

Welcome to the Platform Builder form validations package here you will find out all the helpers that we use on our projects

Whats the idea of this repository

Easily apply validations to forms, specially using yup.

How can i use the library?

Just add the library to your project and import it!

  1. Depend on it:
yarn add @buildersbank/validations
  1. Import example:
import { isValidFullName } from '@buildersbank/validations'

Validations

NameReturnsArguments
isValidAccountBanktruthy OR falsy(string)
isValidAlphabetLetterstruthy OR falsy(string)
isValidAlphanumerictruthy OR falsy(string)
isValidBirthDatetruthy OR falsy(string)
isValidCeptruthy OR falsy(string)
isValidCnpjtruthy OR falsy(string)
isValidCpftruthy OR falsy(string)
isValidCurrencytruthy OR falsy(string)
isValidDDDtruthy OR falsy(string)
isValidDocumenttruthy OR falsy(string)
isValidDocumentDatetruthy OR falsy(string)
isValidEmailtruthy OR falsy(string)
isValidFullNametruthy OR falsy(string)
isValidOnlyNumberstruthy OR falsy(string)
isValidPasswordtruthy OR falsy(string)
isValidPhonetruthy OR falsy(string, number?)
isValidPintruthy OR falsy(string, number?)
isValidPositiveValuetruthy OR falsy(string)
isValidSocialNametruthy OR falsy(string)
isValidNickNametruthy OR falsy(string)