Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 3.26 KB

README-en.md

File metadata and controls

69 lines (44 loc) · 3.26 KB

Gerador e Validador de CPF Open Source Love

LIKED ? Leave a : 😞

Release npm type definitions install size bundle size License

Coverage

Tests Coverage Status Mutation testing cover

Statistics

Website

Downloads

JS open-source lib to generate and validate CPF.

Tool could be accessed on tiagoporto.github.io/gerador-validador-cpf.

Read in other languages: English, Português(Brasil)

Installation

npm install gerador-validador-cpf --save

Generate CPF

import { generate } from 'gerador-validador-cpf'

generate() // Generates a CPF in the format 00000000000
generate({ format: true }) // Generates a CPF in the format 000.000.000-00

Validate CPF

import { validate } from 'gerador-validador-cpf'

validate('123.456.789-00')
// or
validate('123.456.789-00')

Note: characters like ., - and space are allowed.

Contribute

How to contribute.

Donation

Donate Donate

License

Gerador e validador de CPF is released under the terms of the MIT license.