Skip to content

Documentation / @facturometro/einvoice / 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 '@facturometro/validator';

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

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.