nationid - v2.2.1
    Preparing search index...

    Function validate

    • Validate a Dutch (NL) identity or tax document.

      Parameters

      • code: "NL_BSN" | "NL_BTW" | ShortCode

        Document type, either fully-qualified (NL_BSN, NL_BTW) or short (BSN, BTW, VAT).

      • input: string

        Raw document string (formatting tolerated).

      Returns boolean

      true if the value passes NL-specific validation rules.

      import { validate } from "nationid/nl";
      validate("NL_BSN", "111222333");
      validate("BTW", "NL123456789B01");