Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gumbarros/brazil.dart

Function-oriented library for generating, validating, and formatting values such as CPF and CNPJ. It also contains some utilities like CEP lookup.
https://github.com/gumbarros/brazil.dart

brasil cep cnpj cpf dart dartlang

Last synced: about 7 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

![image](https://user-images.githubusercontent.com/52143624/197362764-47dc5128-d14f-4575-a643-26aa4f6d9281.png)

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

```sh
flutter pub add brazil
```
### Dart
```sh
dart pub add brazil
```
## Usage

See [brazil_example.dart](https://pub.dev/packages/brazil/example)