Liking cljdoc? Tell your friends :D

cadastro-de-pessoa.cnpj


control-digitsclj/s


formatclj/s

(format cnpj)

Returns a string of the correctly formatted cnpj

Returns a string of the correctly formatted cnpj
raw docstring

formatted?clj/s

(formatted? cnpj)

Is the cnpj formatted correctly?

Is the cnpj formatted correctly?
raw docstring

genclj/s

(gen)
(gen 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.
raw docstring

lengthclj/s


regexclj/s


repeatedclj/s

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.
raw docstring

valid?clj/s

(valid? cnpj)

Takes a string, seq of digits or a cnpj. Returns true if valid, else false. Does not validate formatting.

Takes a string, seq of digits or a cnpj. Returns true if valid, else false.
Does not validate formatting.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close