https://github.com/epomatti/cpf-cnpj-validation
CPF and CNPJ validation using common ready-to-use libraries
https://github.com/epomatti/cpf-cnpj-validation
cnpj cpf javascript node
Last synced: about 2 months ago
JSON representation
CPF and CNPJ validation using common ready-to-use libraries
- Host: GitHub
- URL: https://github.com/epomatti/cpf-cnpj-validation
- Owner: epomatti
- License: mit
- Created: 2022-09-01T12:41:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-02T11:14:55.000Z (over 2 years ago)
- Last Synced: 2025-01-17T18:42:16.782Z (3 months ago)
- Topics: cnpj, cpf, javascript, node
- Language: JavaScript
- Homepage:
- Size: 807 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CPF/CNPJ Validation
This uses local libraries to validate CPF and CNPJ entries.
Create the environment files:
```sh
touch .env
```Add you parameters to the `.env` to be validated:
```sh
CPF='000.000.000-00'
CNPJ='00.000.000/0000-00'
```Install dependencies and run the scripts:
```sh
yarn installyarn run validate-cpf
yarn run validate-cnpj
```