Validate a Salvadoran (SV) identity or tax document.
Document type, either fully-qualified (SV_DUI, SV_NIT) or short (DUI, NIT, PASAPORTE).
SV_DUI
SV_NIT
DUI
NIT
PASAPORTE
Raw document string (formatting tolerated).
true if the value passes SV-specific validation rules.
true
import { validate } from "nationid/sv";validate("SV_DUI", "01234567-8");validate("NIT", "0614-010190-101-1"); Copy
import { validate } from "nationid/sv";validate("SV_DUI", "01234567-8");validate("NIT", "0614-010190-101-1");
Validate a Salvadoran (SV) identity or tax document.