CPF validation and manipulation utilities.
Functions for validating, formatting, and generating Brazilian CPF (Cadastro de Pessoas Físicas). All functions handle both formatted (XXX.XXX.XXX-XX) and unformatted (XXXXXXXXXXX) inputs.
Examples: (is-valid? "123.456.789-09") ;; => true or false (format-cpf "12345678909") ;; => "123.456.789-09" (remove-symbols "123.456.789-09") ;; => "12345678909" (generate) ;; => "34567890120" (random valid CPF) (generate :SP) ;; => "34567890121" (with state code)
CPF validation and manipulation utilities. Functions for validating, formatting, and generating Brazilian CPF (Cadastro de Pessoas Físicas). All functions handle both formatted (XXX.XXX.XXX-XX) and unformatted (XXXXXXXXXXX) inputs. Examples: (is-valid? "123.456.789-09") ;; => true or false (format-cpf "12345678909") ;; => "123.456.789-09" (remove-symbols "123.456.789-09") ;; => "12345678909" (generate) ;; => "34567890120" (random valid CPF) (generate :SP) ;; => "34567890121" (with state code)
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |