@box4dev/gerador-br
The Definitive Brazilian Data Library for Your Node.js Tests. QA tests.
Install the NPM package @box4dev/gerador-br and stop worrying about test data. Lightweight, with no dependencies and complete coverage of fictitious data.
Why Developers Love @box4dev/gerador-br?
Zero Dependencies
Add to your project without worrying about extra packages. Lightweight, fast and secure.
Modular API
Import only the functions you need, keeping your test bundle small.
Valid Data
Generates documents with correct check digits, ensuring they pass validations.
Open Source
Developed and maintained by the community. Contribute on GitHub.
Complete Data Coverage for Your Tests
Pessoa Física
- ✓CPF, RG, CNH
- ✓Título de Eleitor, PIS, CNS
- ✓Passaporte e Certidões
- ✓Nome, Filiação
Pessoa Jurídica
- ✓CNPJ (Numérico e Alfanumérico)
- ✓Inscrição Estadual
- ✓Razão Social
Financeiro
- ✓Cartão de Crédito Válido
- ✓Conta Bancária Completa
- ✓Agência e Banco
Contatos & Veículos
- ✓Endereço Completo com CEP
- ✓Placa (Antiga e Mercosul)
- ✓Renavam
- ✓E-mail, Celular
Frequently Asked Questions
Does the package have any production dependencies?
No. The package is completely independent, with no production dependencies.
Are the functions synchronous or asynchronous?
All generator functions are synchronous. You can call them directly without async/await.
Where can I find the complete documentation?
The complete documentation is available here on the site, through the link in the 'Get Started' section.
How does the package ensure data is valid?
The package implements the official algorithms for calculating check digits.