CPFCNPJ 2.0.3

CPF / CNPJ Framework
Methods that help you to check and format the special numbers of CPF and CNPJ.
Help me a lot and I'm putting here to help other people.

Example to use the code:

CPFCNPJ.Main main = new CPFCNPJ.Main();

           var formato = main.FormatCPFCNPJ("09009909000",  CPFCNPJ.Enum.TypeString.CPF);

           var val = main.IsValidCPFCNPJ("109.029.092-00");

           Console.WriteLine($"{formato}");
           Console.WriteLine($"{val}");

Install-Package CPFCNPJ -Version 2.0.3
dotnet add package CPFCNPJ --version 2.0.3
<PackageReference Include="CPFCNPJ" Version="2.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CPFCNPJ --version 2.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

You can use the package in your projects.

You can use the package in your projects.

Release Notes

CPF / CNPJ Framework
Methods that help you to check and format the special numbers of CPF and CNPJ.
Help me a lot and I'm putting here to help other people.

Example to use the code:

CPFCNPJ.Main main = new CPFCNPJ.Main();

           var formato = main.FormatCPFCNPJ("09009909000",  CPFCNPJ.Enum.TypeString.CPF);

           var val = main.IsValidCPFCNPJ("109.029.092-00");

           Console.WriteLine($"{formato}");
           Console.WriteLine($"{val}");

  • .NETCoreApp 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.3 72 3/22/2020
2.0.2 67 3/22/2020
2.0.1 69 3/22/2020
2.0.0 73 3/22/2020
1.0.1 114 3/7/2020