(format cnpj)
Returns a string of the correctly formatted cnpj
Returns a string of the correctly formatted cnpj
(formatted? cnpj)
Is the cnpj formatted correctly?
Is the cnpj formatted correctly?
(generate)
(generate branch)
Generates a random valid cnpj. An integer argument can be given to choose headquarters or a branch. (Matriz ou filial) In a cnpj xx.xxx.xxx/0001-xx, 0001 is the branch number, in this case headquarters.
Generates a random valid cnpj. An integer argument can be given to choose headquarters or a branch. (Matriz ou filial) In a cnpj xx.xxx.xxx/0001-xx, 0001 is the branch number, in this case headquarters.
(generate-formatted)
(generate-formatted branch)
Generates a random valid cnpj. An integer argument can be given to choose headquarters or a branch. (Matriz ou filial) In a cnpj xx.xxx.xxx/0001-xx, 0001 is the branch number, in this case headquarters.
Generates a random valid cnpj. An integer argument can be given to choose headquarters or a branch. (Matriz ou filial) In a cnpj xx.xxx.xxx/0001-xx, 0001 is the branch number, in this case headquarters.
(generate-int)
(generate-int branch)
Generates a random valid cnpj as a integer, because life sucks
Generates a random valid cnpj as a integer, because life sucks
A set of cnpjs with repeated digits that are considered valid by the algorithm, but normally shouldn't count as valid.
A set of cnpjs with repeated digits that are considered valid by the algorithm, but normally shouldn't count as valid.
(valid-int? cnpj)
Takes a integer and validade it as a cnpj
Takes a integer and validade it as a cnpj
(valid? cnpj)
Takes a string. Returns true if valid, else false.
Takes a string. Returns true if valid, else false.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close