Validate a Guatemalan (GT) identity or tax document.
Document type, either fully-qualified (GT_DPI) or short (DPI, CUI, NIT, PASAPORTE).
GT_DPI
DPI
CUI
NIT
PASAPORTE
Raw document string (formatting tolerated).
true if the value passes GT-specific validation rules.
true
import { validate } from "nationid/gt";validate("GT_DPI", "1234 56789 0101");validate("NIT", "1234567-8"); Copy
import { validate } from "nationid/gt";validate("GT_DPI", "1234 56789 0101");validate("NIT", "1234567-8");
Validate a Guatemalan (GT) identity or tax document.