image

Function-oriented library for generating, validating, and formatting values such as CPF and CNPJ. It also contains some utilities like CEP lookup.

Features

  • Generation, formatting and validation of CPF and CNPJ strings
  • Constants with useful values like a Map of all brazilian states
  • CEP lookup using the ViaCEP webservice

Getting Started

Flutter

flutter pub add brazil

Dart

dart pub add brazil

Usage

See brazil_example.dart

Libraries

brazil
Function-oriented library for generating, validating and formatting Brazilian values such as CPF and CNPJ.