brazil 0.1.0 copy "brazil: ^0.1.0" to clipboard
brazil: ^0.1.0 copied to clipboard

outdated

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

example/brazil_example.dart

import "package:brazil/brazil.dart";

void main() {
  //CPF
  final String cpf = generateCpf(isFormatted: false);
  print(cpf);

  final String formattedCpf = formatCpf(cpf);
  print(formattedCpf);

  final bool isCpfValid = validateCpf(cpf);
  print(isCpfValid);

  //CNPJ
  final String cnpj = generateCnpj(isFormatted: false);
  print(cpf);

  final String formattedCnpj = formatCnpj(cnpj);
  print(formattedCnpj);

  final bool isCnpjValid = validateCnpj(cnpj);
  print(isCnpjValid);
}
1
likes
0
pub points
36%
popularity

Publisher

unverified uploader

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

Homepage

License

unknown (license)

More

Packages that depend on brazil