burocracia

burocracia.cr the dependecyless shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP brazil brasil cep cnpj cpf
0.1.0 Latest release released

burocracia.cr : all Brazilian burocracias solved Build Status

burocracia.cr is the dependecyless Crystal shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP.

Installation

Add this to your application's shard.yml:

dependencies:
  burocracia:
    github: vnbrs/burocracia.cr

Usage

require "burocracia"

Burocracia::CEP.generate
=> "23230133"

Burocracia::CEP.generate(format: true)
=> "71946-192"

Burocracia::CEP.valid? "80210130"
=> true

Burocracia::CEP.valid? "80210-130"
=> true

Read the full documentation here.

Contributing

  1. Fork it ( https://github.com/vnbrs/burocracia.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • vnbrs Vinicius Brasil - creator, maintainer
burocracia:
  github: vinibrsl/burocracia.cr
  version: ~> 0.1.0
License MIT
Crystal 0.24.2

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Other repos 1

Last synced .
search fire star recently