Validocs library for document and pattern validation.
- Fabio Marciano [email protected]
This project is licensed under the terms of the MIT license.
The current list of documents and patterns implemented on this project are:
- CPF
Cadastro Pessoas Físicas (brazilian federal document required for natural persons) - CNPJ
Cadastro Nacional de Pessoas Jurídicas (brazilian federal document required for legal persons) - PIS
Programa de Integração Social (brazilian federal document required for natural persons)
$ npm run test
This command runs all tests and outputs a report1 about its coverage.
$ npm run test:coverage
1 The report outputs at coverage folder.
$ npm run test:watch
$ npm run lint
This command builds the distribuition1.
$ npm run build
1 Outputs the dist folder
Go to validocs project wiki page to see how to use it.