🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@alexandrezanata/validators-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alexandrezanata/validators-cli

Terminal CLI for Brazilian document validation — CPF, CNPJ, CEP, IE, PIX, boleto, and more

latest
Source
npmnpm
Version
0.10.0-alpha.0
Version published
Maintainers
1
Created
Source

@alexandrezanata/validators-cli

Terminal CLI for all Brazilian document validators in @alexandrezanata/validators-core.

Install

npm install -g @alexandrezanata/validators-cli

Or run without install:

npx @alexandrezanata/validators-cli --help

Commands

br-validators list
br-validators --version

br-validators cnpj validate 12ABC34501DE35 --json --source
br-validators cpf validate 12345678909
br-validators cep format 01310100
br-validators placa validate ABC1D23
br-validators pis-pasep validate 10027230888
br-validators pix validate pix@bcb.gov.br
br-validators boleto validate <linha-ou-barcode>
br-validators cartao validate 4111111111111111
br-validators ie validate 110042490114 --uf SP --json

Actions (all types)

ActionDescription
validateCheck format + check digits
formatApply official mask
stripNormalize to canonical digits/chars

Flags

FlagDescription
--jsonJSON output (ValidationResult)
--quiet / -qExit code only (CI)
--file / -fRead value from file
--sourcePrint official source URL
--ufRequired for IE (27 UFs)

CI

br-validators cnpj validate "$CNPJ" --quiet || exit 1

License

MIT

Keywords

brazil

FAQs

Package last updated on 22 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts