Package Exports
- br-validation
- br-validation/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (br-validation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 |