Validate a Brazilian (BR) identity or tax document.
Document type, either fully-qualified (BR_CPF, BR_CNPJ, ...) or short (CPF, CNPJ, CNH, TITULO_ELEITOR, PIS, PASAPORTE).
BR_CPF
BR_CNPJ
CPF
CNPJ
CNH
TITULO_ELEITOR
PIS
PASAPORTE
Raw document string (formatting tolerated).
true if the value passes BR-specific validation rules.
true
import { validate } from "nationid/br";validate("BR_CPF", "111.444.777-35"); // truevalidate("CNPJ", "11.222.333/0001-81"); Copy
import { validate } from "nationid/br";validate("BR_CPF", "111.444.777-35"); // truevalidate("CNPJ", "11.222.333/0001-81");
Validate a Brazilian (BR) identity or tax document.