Validate a French (FR) identity, business or VAT document.
Document type, either fully-qualified (FR_NIR, FR_SIREN, FR_SIRET, FR_TVA) or short (NIR, SIREN, SIRET, TVA).
FR_NIR
FR_SIREN
FR_SIRET
FR_TVA
NIR
SIREN
SIRET
TVA
Raw document string (formatting tolerated).
true if the value passes FR-specific validation rules.
true
import { validate } from "nationid/fr";validate("FR_NIR", "1 84 12 76 451 089 46"); // truevalidate("SIREN", "732 829 320"); Copy
import { validate } from "nationid/fr";validate("FR_NIR", "1 84 12 76 451 089 46"); // truevalidate("SIREN", "732 829 320");
Validate a French (FR) identity, business or VAT document.