Gerador-CPF-e-CNPJ-valido

cpf_and_cnpj-generator

Library for generating valid CPF and CNPJ values in TypeScript/JavaScript, Python, Go, C and Java.

The project covers both official CNPJ standards, including the new alphanumeric CNPJ, and keeps an explicit focus on implementation quality, cross-language consistency and performance.

Highlights

CNPJ — Supported Versions

All packages support both official CNPJ standards:

When no version is provided, generators randomly choose between CNPJ v1 and CNPJ v2.

👉 Demo: ./demo.html

READMEs

Supported Languages

You can use the project in the following languages:

Usage

Each language has its own README with installation steps, examples and API details.

If you are using TypeScript, for example, start with the TypeScript README.

Installation

Please refer to the specific installation instructions in the README file of the respective programming language directory.

Contributing

Contributions are welcome! Please read the contributing guidelines before getting started.

License

This project is licensed under the MIT License.