UNPKG

@type-ddd/cnpj

Version:

Library that provides TypeScript type definitions for handling CNPJ (Cadastro Nacional da Pessoa Jurídica) in Domain-Driven Design contexts. It facilitates the validation and manipulation of CNPJ numbers, ensuring they adhere to the Brazilian legal standa

5 lines (4 loc) 247 B
export declare const formatValueToCnpjPattern: (cnpj: string) => string; export declare const removeSpecialCharsFromCnpj: (cnpj: string) => string; export declare const isValidCnpjDigit: (cnpj: string) => boolean; export default isValidCnpjDigit;