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.
#r "nuget: CPFCNPJ, 2.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CPFCNPJ as a Cake Addin
#addin nuget:?package=CPFCNPJ&version=2.0.3

// Install CPFCNPJ as a Cake Tool
#tool nuget:?package=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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.3 315 3/22/2020
2.0.2 195 3/22/2020
2.0.1 203 3/22/2020
2.0.0 208 3/22/2020
1.0.1 246 3/7/2020