burocracia.cr alternatives and similar shards
Based on the "Misc" category.
Alternatively, view burocracia.cr alternatives based on common mentions on social networks and blogs.
-
sentry
Build/Runs your crystal application, watches files, and rebuilds/restarts app on file changes -
wikicr
Wiki in crystal, using Markdown and Git, inspired by dokuwiki. Last features to build are pretty hard, if you have some time to help... :) -
defined
This shard provides facilities for checking whether a constant exists at compile time, and for a variety of different conditional compilation options. Code can be conditionally compiled based on the existence of a constant, version number constraints, or whether an environment variable is set truthy or not.
WorkOS - The modern identity platform for B2B SaaS
Do you think we are missing an alternative of burocracia.cr or a related project?
README
burocracia.cr [](#)
All Brazilian boring burocracias solved
burocracia.cr is the dependecyless Crystal shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP.
(clique aqui para uma versão em português 🇧🇷)
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::Address.find "80210-130"
=> #<CEP::Address:0x10e1b83c0 @cep="80210130", @neighborhood="Jardim Botânico", @city="Curitiba", @street="Rua José Ananias Mauad", @state="Paraná", @state_abbreviation="PR">
Burocracia::CPF.valid?("10880423971")
=> false
Burocracia::CNPJ.format("92583745000149")
=> "92.583.745/0001-49"
Burocracia::CNPJ.sanitize("92.583.745/0001-49")
=> "92583745000149"
Read the full documentation here.
Contributing
- Fork it ( https://github.com/vnbrs/burocracia.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Please, don't forget to document the code and run crystal docs
to apply the changes to /docs
folder.
Contributors
- vnbrs Vinicius Brasil - creator, maintainer
*Note that all licence references and agreements mentioned in the burocracia.cr README section above
are relevant to that project's source code only.