ulissesalmeida / cpf

A Brazilian CPF validation written in Elixir
MIT License
40 stars 10 forks source link

CNPJ validation #6

Closed roehst closed 2 years ago

roehst commented 3 years ago

Hi all!

This library looks slick. I wonder if there are any plans to add CNPJ validation as well?

Congrats for the work.

ulissesalmeida commented 3 years ago

I had a specific library for CNPJ:

The goal is to have the same features as CPF. But at the moment is stuck because I'm not working on it at the moment 😂

It has the basic is_valid? function but needs more features to be in parity with CPF.

roehst commented 3 years ago

Nice :) is it usable in production? I really only need to validate CPFs and CNPJs. What features it misses compared to CPF?

ulissesalmeida commented 3 years ago

It's usable in production.

It's missing Ecto integration, and some quality of life features. But the validation itself is good for production 👍🏽

ulissesalmeida commented 2 years ago

I'm closing it. Any further discussions, improvements, and features can be done on https://github.com/ulissesalmeida/cnpj library.