Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → Format CPF/CNPJ

AI-generated

Summary

Format a Brazilian CPF or CNPJ number string into its standard formatting pattern.

Inputs

  • document (required) — The CPF or CNPJ number string to be formatted (digits only or unformatted).
  • outputJsonProperty — The JSON property name where the formatted document string will be stored in the node output (default is 'formattedDocument').

Output shape

a single JSON object with the formatted CPF or CNPJ string stored under the configurable output JSON property name.

The output JSON property defaults to 'formattedDocument' if not specified. The input 'document' must be provided as a string representing a CPF or CNPJ number. No additional data or metadata is returned.

Links

Discussion