idnumbers
    Preparing search index...

    Function listSupportedCountries

    • Return the list of supported countries, derived from the registry.

      Sorted by ISO 3166-1 alpha-3 code. Returns a fresh array on every call, so mutating the result of one call never affects another.

      Returns CountryInfo[]

      import { listSupportedCountries } from 'idnumbers';

      const countries = listSupportedCountries();
      countries.length; // 85
      countries[0]; // { code: 'ALB', name: 'Albania', idType: 'Identity Number' }