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.
import { listSupportedCountries } from 'idnumbers';const countries = listSupportedCountries();countries.length; // 85countries[0]; // { code: 'ALB', name: 'Albania', idType: 'Identity Number' } Copy
import { listSupportedCountries } from 'idnumbers';const countries = listSupportedCountries();countries.length; // 85countries[0]; // { code: 'ALB', name: 'Albania', idType: 'Identity Number' }
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.