Validate a Chilean (CL) identity or tax document.
Document type, either fully-qualified (CL_RUT, CL_PASAPORTE) or short (RUT, RUN, PASAPORTE).
CL_RUT
CL_PASAPORTE
RUT
RUN
PASAPORTE
Raw document string (formatting tolerated).
true if the value passes CL-specific validation rules.
true
import { validate } from "nationid/cl";validate("CL_RUT", "12.345.678-5"); // truevalidate("RUN", "11111111-1"); Copy
import { validate } from "nationid/cl";validate("CL_RUT", "12.345.678-5"); // truevalidate("RUN", "11111111-1");
Validate a Chilean (CL) identity or tax document.