Why use Validador-BR?
Native TypeScript
Written in TypeScript with full type support, providing autocomplete and real-time checking.
Complete Coverage
Validates CPF, CNPJ, Alphanumeric CNPJ, CNH, CNS, PIS, Voter ID, Certificate, State Registration and Credit Card.
High Performance
Algorithms optimized for fast execution on server or browser, with 100% test coverage.
Open Source
Native support for ESM, CommonJS and UMD. Developed and maintained by the community. Contribute on GitHub.
What does Validador-BR validate?
Personal Documents
- ✓CPF
- ✓CNH
- ✓CNS (National Health Card)
- ✓PIS/PASEP
- ✓Voter ID
- ✓Certificate (Birth, Marriage, Death)
Company Documents
- ✓CNPJ (Numeric)
- ✓Alphanumeric CNPJ (new standard)
- ✓State Registration (27 states)
Financial
- ✓Boleto
- ✓Credit Card (Luhn Algorithm)
Frequently Asked Questions
No. @box4dev/validador-br is completely independent, with no external dependencies.