valida-gera-cpf
v2.0.0
Published
Pacote útil para validar e gerar números cpf
Downloads
10
Maintainers
Readme
Classes úteis para gerar e validar CPF
npm i valida-gera-cpf
const { ValidaCPF, GeraCPF} = require("valida-gera-cpf")
- ValidaCPF(cpf): Essa classe recebe um cpf como argumento e precisa ter o método valida( ) chamado para validar o cpf. Exemplo:
const valido = new ValidaCPF('00000000000').valida()
- GeraCPF(): Essa classe irá gerar um novo cpf através do método geraNovoCpf().
const cpf = new GeraCPF().geraNovoCpf()