Validate a United States (US) identity or tax document.
Document type, either fully-qualified (US_SSN, US_ITIN, US_EIN) or short (SSN, ITIN, EIN, PASSPORT).
US_SSN
US_ITIN
US_EIN
SSN
ITIN
EIN
PASSPORT
Raw document string (formatting tolerated).
true if the value passes US-specific validation rules.
true
import { validate } from "nationid/us";validate("US_SSN", "123-45-6789");validate("EIN", "12-3456789"); Copy
import { validate } from "nationid/us";validate("US_SSN", "123-45-6789");validate("EIN", "12-3456789");
Validate a United States (US) identity or tax document.