@br-validators/cli
Advanced tools
+2
-2
| { | ||
| "name": "@br-validators/cli", | ||
| "version": "1.9.0", | ||
| "version": "1.10.0", | ||
| "description": "CLI for @br-validators/core — CPF, CNPJ, NF-e, IE, PIX, boleto + detect/sanitize/generate", | ||
@@ -48,3 +48,3 @@ "license": "MIT", | ||
| "commander": "^13.1.0", | ||
| "@br-validators/core": "1.9.0" | ||
| "@br-validators/core": "1.10.0" | ||
| }, | ||
@@ -51,0 +51,0 @@ "devDependencies": { |
+32
-3
@@ -7,3 +7,3 @@ # @br-validators/cli | ||
| Terminal CLI for all Brazilian document validators in [@br-validators/core](https://www.npmjs.com/package/@br-validators/core) **v1.9.0**. | ||
| Terminal CLI for all Brazilian document validators in [@br-validators/core](https://www.npmjs.com/package/@br-validators/core) **v1.10.0**. | ||
@@ -82,3 +82,3 @@ **Repo:** [github.com/open-data-brazil/br-validators](https://github.com/open-data-brazil/br-validators) | ||
| | `compare <type> <valueA> <valueB>` | Normalized equality; `--uf` for IE / RG / título | | ||
| | `batch <type>` | Bulk validate (stdin or `--file`); `--uf`, `--limit` | | ||
| | `batch <type>` | Bulk validate (stdin or `--file`, or CSV with `--col`); `--delimiter`, `--skip-header`; `--uf`, `--limit` | | ||
| | `diff <type> <valueA> <valueB>` | Field-level diff; `--uf` for IE / RG / título | | ||
@@ -96,2 +96,5 @@ | `generate <type>` | Synthetic test document; `--seed`, `--masked`, `--format` | | ||
| br-validators batch cpf --file values.txt --json | ||
| br-validators batch cpf --file payroll.csv --col cpf --json | ||
| br-validators sanitize pix ' PIX@BCB.GOV.BR ' --json | ||
| br-validators csosn lookup 102 --json | ||
| br-validators diff cpf 12345678909 12345678901 --json | ||
@@ -133,2 +136,13 @@ br-validators generate cpf --seed 42 --masked --json | ||
| ### Fiscal reference (33o–34) | ||
| ```bash | ||
| br-validators iss-municipal lookup 3550308 --json | ||
| br-validators iss-municipal list --uf SP --limit 10 --json | ||
| br-validators iss-municipal search campinas --uf SP --limit 5 --json | ||
| br-validators iss-municipal resolve SP "São Paulo" --verbose | ||
| ``` | ||
| Partial embed (~500 municipalities). **Estimation / quoting only — not NFSe emission.** | ||
| ### Geography & calendar (27d) | ||
@@ -152,4 +166,18 @@ | ||
| br-validators incoterms lookup FOB --json | ||
| br-validators ptax lookup USD --verbose | ||
| br-validators ptax lookup USD 2026-06-20 --json --verbose | ||
| br-validators ptax historico USD 2026-06-01 2026-06-26 --json --verbose | ||
| ``` | ||
| **PTAX:** offline embed — last **90 business days** (`janelaDiasUteis: 90`; not live Bacen). `--verbose` prints `dataReferencia`, `isStale`, and `warning` when stale. `ptax historico` lists all embedded rows in a date range. | ||
| ### Finance (SELIC) | ||
| ```bash | ||
| br-validators selic --verbose | ||
| br-validators selic --date 2026-06-18 --json --verbose | ||
| ``` | ||
| `--verbose` includes `dataReferencia`, `isStale`, and dataset `capturadoEm` (same pattern as PTAX). | ||
| ### Logistics (26e) | ||
@@ -177,5 +205,6 @@ | ||
| | `--quiet` / `-q` | Exit code only (CI) | | ||
| | `--verbose` | PTAX / SELIC: `dataReferencia`, `isStale`, `warning`; other lookups: dataset metadata | | ||
| | `--file` / `-f` | Read value from file | | ||
| | `--source` | Print official source URL (per-type) | | ||
| | `--uf` | Required for IE / detect / sanitize IE; optional filter for `ibge list municipios` | | ||
| | `--uf` | Required for IE / detect / sanitize IE; filter for `ibge list municipios`, `iss-municipal list`, and `iss-municipal search` | | ||
@@ -182,0 +211,0 @@ ### CI |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
308533
4.9%9049
4.24%217
15.43%+ Added
- Removed
Updated