Skip to main content
Module

x/cnpj/index.ts>format

🇧🇷 Format, validate and generate CNPJ numbers
Go to Latest
function format
import { format } from "https://deno.land/x/cnpj@v3.2.1/index.ts";

Formats a CNPJ value

Parameters

cnpj: string | number

The CNPJ to be formatted

Returns

string

The formatted CNPJ