0.0.1 • Published 4 years ago

@codedreams/validations v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Welcome to Code Dreams Validations

Welcome to the Code Dreams 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 @codedreams/validations
  1. Import:
import { isValidFullName } from '@codedreams/validations'

Validations

NameReturnsArguments
isValidFullNametruthy OR falsy(string)
isValidCeptruthy OR falsy(string)
isValidCurrencytruthy OR falsy(string)
isValidDDDtruthy OR falsy(string)
isValidEmailtruthy OR falsy(string)
isValidCpftruthy OR falsy(string)
isValidCnpjtruthy OR falsy(string)
isValidPasswordtruthy OR falsy(string)
isValidDocumenttruthy OR falsy(string)
isValidPintruthy OR falsy(string, number?)
isValidPositiveValuetruthy OR falsy(string)