br-validation
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Funções Úteis para formatação BRASILEIRA

Instalação

yarn add br-validation

ou

npm install br-validation

Modo de uso

import {
  cpfFormatter,
  cnpjFormatter,
  cepFormatter,
  documentFormatter,
  phoneFormatter,
  cpfValidator,
  cnpjValidator,
  isCpfOrCnpj
} from 'br-validation'

Descrição das funções

Função Parâmetros Retorno
cpfFormatter value: string string
cnpjFormatter value: string string
cepFormatter value: string string
documentFormatter value: string string ou null
phoneFormatter value: string string
cpfValidator value: string boolean
cnpjValidator value: string boolean
isCpfOrCnpj value: string 'cpf' ou 'cnpj' ou null

Package Sidebar

Install

npm i br-validation

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

12.3 kB

Total Files

25

Last publish

Collaborators

  • devpedrohenrique