nationid - v2.2.1
    Preparing search index...

    Function validate

    • Validate a Bolivian (BO) identity or tax document.

      Parameters

      • code: "BO_CI" | "BO_NIT" | "BO_PASAPORTE" | ShortCode

        Document type, either fully-qualified (BO_CI, BO_NIT, BO_PASAPORTE) or short (CI, NIT, PASAPORTE).

      • input: string

        Raw document string (formatting tolerated).

      Returns boolean

      true if the value passes BO-specific validation rules.

      import { validate } from "nationid/bo";
      validate("BO_CI", "1234567");
      validate("NIT", "1023456023");