An open API service indexing awesome lists of open source software.

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

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 install

yarn run validate-cpf
yarn run validate-cnpj
```