Skip to content

Documentation / einvoice-ts / identifiers / dkCvr

Function: dkCvr() ​

dkCvr(value): boolean

Defined in: packages/validator/src/identifiers/dk.ts:25

A Danish CVR number: DK and eight digits, or eight digits.

Parameters ​

value ​

string

The element text, raw.

Returns ​

boolean

true when the format matches.

Example ​

ts
import { dkCvr } from '@einvoice-ts/validator';

dkCvr('DK12345678'); // true
dkCvr('12345678'); // true
dkCvr('DK1234567'); // false

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.