Skip to main content
Module

x/cnpj/mod.ts>format

🇧🇷 Format, validate and generate CNPJ numbers in Node & Deno
Go to Latest
function format
import { format } from "https://deno.land/x/cnpj@v4.0.2/mod.ts";

Formats a CNPJ value

Parameters

cnpj: string | number

The CNPJ to be formatted

Returns

string

The formatted CNPJ