br-validations
A library of validations applicable to several Brazilian data like I.E., CNPJ, CPF and others.
Instalation
With npm
npm install --save br-validations
With bower
bower install --save br-validations
Runing tests
gulp test
Validations
Inscrição Estadual
var BrV = ; var uf = 'PE'; var ie = '1321418-40'; var isValid = BrV;
See: Conferência de Inscrições Estaduais
CPF
var BrV = ; var cpf = '219.841.712-08'; var isValid = BrVcpf;
CNPJ
var BrV = ; var cnpj = '10.157.471/0001-61'; var isValid = BrV;
RG
Not implemented yet
PIS/PASEP
var BrV = ; var pis = '120.5825.883-7'; var isValid = BrVpis;
Contributing
We'd love for you to contribute to our source code! We just ask for you to:
- Follow the commit conventions of conventional-changelog described in conventional-conventions
- Write tests for the new feature or bug fix that you are solving
- Ensure all tests pass before send the pull-request (Use:
$ gulp test-coverage
)