README
Validocs
Validocs library for document and pattern validation.
Features
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)
Collaborators
- Fabio Marciano fabioamarciano@gmail.com
License
This project is licensed under the terms of the MIT license.
Quickstart
Install
$ npm install validocs --save
Usage
Typescript example:
Import and use a module:
import CPF from 'validocs/cpf';
const cpf: CPF.Cpf = CPF.make();
console.log(`Generated CPF number: ${cpf}`);
Documentation
The projects wiki is available at github.