@buildersbank/validations
v0.1.1
Published
[![Build Status][check-badge]][workflows] [![codecov][codecov]](https://codecov.io/gh/platformbuilders/validations) [![npm][npm-badge]][npm] [![MIT][license-badge]][license]
Downloads
3
Maintainers
Readme
Welcome to Platform Builders Validations
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!
- Depend on it:
yarn add @buildersbank/validations
- Import example:
import { isValidFullName } from '@buildersbank/validations'
Validations
| Name | Returns | Arguments |
| -------------------------------------------------------- | --------------- | ----------------- |
| isValidAccountBank
| truthy OR falsy | (string) |
| isValidAlphabetLetters
| truthy OR falsy | (string) |
| isValidAlphanumeric
| truthy OR falsy | (string) |
| isValidBirthDate
| truthy OR falsy | (string) |
| isValidCep
| truthy OR falsy | (string) |
| isValidCnpj
| truthy OR falsy | (string) |
| isValidCpf
| truthy OR falsy | (string) |
| isValidCurrency
| truthy OR falsy | (string) |
| isValidDDD
| truthy OR falsy | (string) |
| isValidDocument
| truthy OR falsy | (string) |
| isValidDocumentDate
| truthy OR falsy | (string) |
| isValidEmail
| truthy OR falsy | (string) |
| isValidFullName
| truthy OR falsy | (string) |
| isValidOnlyNumbers
| truthy OR falsy | (string) |
| isValidPassword
| truthy OR falsy | (string) |
| isValidPhone
| truthy OR falsy | (string, number?) |
| isValidPin
| truthy OR falsy | (string, number?) |
| isValidPositiveValue
| truthy OR falsy | (string) |
| isValidSocialName
| truthy OR falsy | (string) |
| isValidNickName
| truthy OR falsy | (string) |