Skip to content

Documentation / @facturometro/validator / identifiers / nlVat

Function: nlVat() ​

nlVat(value): boolean

Defined in: packages/validator/src/identifiers/nl.ts:52

A Dutch VAT identifier: NL, nine digits, B, two digits.

Parameters ​

value ​

string

The identifier, whitespace-normalized.

Returns ​

boolean

true when the format matches.

Example ​

ts
import { nlVat } from '@facturometro/validator';

nlVat('NL123456789B01'); // true
nlVat('NL123456789B1'); // false

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