Package
cpf-cnpj-validator
Valida, formata e gera strings de CPF ou CNPJ, com suporte ao novo formato alfanumérico da RFB e adapters para joi, yup e zod.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 103.5k
- +70% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 4 months ago
- v2.1.2
- GitHub stars
- 227
- 29 forks
- Open issues / PRs
- 0 / 9
- Contributors
- -
- Commits, last 52 weeks
- 25
Downloads
Last week 2026-09-15 to 2026-09-21
103,510 downloads last week, 482,466 in the last month. The 12-month change of +70% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 2.1.2, 22 May 20264 months ago
- First published
- -
- Last push to GitHub
- 13 Sept 202611 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 9
- Commits, last 52 weeks
- 25
- Dependents on npm
- 120
Major versions
-
Recent releases
-
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=18
- Runtimes
- -
- Unpacked size (npm)
- 338 kB
- Dependencies (0)
- None
- Peer dependencies (6)
joiyupzod@angular/formsclass-validatorreflect-metadata
npm install cpf-cnpj-validatorCDN
jsDelivr: 316k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/cpf-cnpj-validator@2.1.2/ - unpkg
https://unpkg.com/cpf-cnpj-validator@2.1.2/ - esm.sh
https://esm.sh/cpf-cnpj-validator@2.1.2
Indexability: Indexed.