CNPJ Alfanumérico Lint — validação de CNPJ no código
Runs the same checker as our npm package on a Node.js runtime that pip installs for you (
nodejs-wheel-binaries) - no system Node.js needed. Your files are checked locally.
Acha regex \d{14}, replace(/\D/g), parseInt no DV e coluna BIGINT antes que recusem o CNPJ alfanumérico (IN RFB nº 2.229/2024)
Install
cnpj-alfanumerico-lint file
Node 18+. The same 11 rules as the VS Code extension, from a terminal or CI.
Free
- Grátis: verifica o arquivo aberto (ou o código colado no navegador) com as 11 regras e mostra cada linha que recusa um CNPJ alfanumérico, com a correção.
--ruleslists every rule
With a licence ($29 once)
- Versão completa ($29, pagamento único): varre o workspace inteiro de uma vez e exporta um relatório Markdown por arquivo para anexar ao PR ou à auditoria de migração.
cnpj-alfanumerico-lint --dir ./templates --report html --out report.html
Use from an AI agent (MCP)
Claude Code · Cursor · Windsurf · any MCP client - add to your MCP config:
{ "mcpServers": { "cnpj-alfanumerico-lint": { "command": "cnpj-alfanumerico-lint", "args": ["--mcp"] } } }
Tools: check_text and check_file (free) · check_dir (licence). The agent gets every finding with the line number.
Use in CI
- name: CNPJ Alfanumérico Lint — validação de CNPJ no código
run: pip install rulestamp-cnpj-alfanumerico-lint && cnpj-alfanumerico-lint --dir . --ci
The folder sweep, reports and CI mode need one licence — one payment, no subscription. Set READYSTACK_LICENSE=<key> or run --license <key> once.
Install (PyPI)
pip install rulestamp-cnpj-alfanumerico-lint
cnpj-alfanumerico-lint --help
Metadata
Release files for rulestamp-cnpj-alfanumerico-lint 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rulestamp_cnpj_alfanumerico_lint-1.0.3.tar.gz | 16.3 kB | Without provenance | Details for rulestamp_cnpj_alfanumerico_lint-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rulestamp_cnpj_alfanumerico_lint-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for rulestamp_cnpj_alfanumerico_lint-1.0.3-py3-none-any.whl |
Total release size: 34.9 kB
Release files / rulestamp_cnpj_alfanumerico_lint-1.0.3.tar.gz
| Download URL | rulestamp_cnpj_alfanumerico_lint-1.0.3.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41adc7dfb2373d3bf5a1a6e489001212c706ff55073d8516db9c0853e8559e53
|
|
BLAKE2b-256 checksum How to use checksums |
e275eacfddff9beb0173d20bc574623c6d210ae4421606e29b11392ed1c02976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / rulestamp_cnpj_alfanumerico_lint-1.0.3-py3-none-any.whl
| Download URL | rulestamp_cnpj_alfanumerico_lint-1.0.3-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25449317193c9c8788e963e8480f54196cfa351349a89bac884905f58a55520d
|
|
BLAKE2b-256 checksum How to use checksums |
5e7d0ffd0e8597b4d1b8364bf2a5ef328d60a42bc9ac763d04329119d7d1e1f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for rulestamp-cnpj-alfanumerico-lint 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.