atlas_code 0.1.0
atlas_code: ^0.1.0 copied to clipboard
Country codes and metadata for every ISO 3166-1 country: alpha-2/alpha-3/ numeric codes, dial codes, flag emojis, currencies, regions, plus OS-localized country names via a federated platform implementation.
0.1.0 #
Initial release.
- Bundled dataset of all 250 ISO 3166-1 countries and territories, generated from mledoze/countries: alpha-2/alpha-3/numeric codes, dial codes, currencies, languages, regions/subregions, capitals, TLDs, land borders, coordinates, independence and UN membership.
Countries: synchronous, O(1), case-insensitive, non-throwing lookups —fromAlpha2/3,fromNumeric,fromCode,withDialCode,forLocale,current,byCurrency, plus deprecated-region-code remapping.- Generated
CountryCodeenum for type-safe, non-nullable lookups (Countries.of,code.country). Currencytype withCountries.currencyandcountry.currencies.Countries.byPhoneNumber: longest-prefix country resolution for international phone numbers, shared-numbering-plan aware.- OS-localized country names via
AtlasCode.localizedNames, with bundled English fallback flagged byisFallbackand per-language caching. - Locale reactivity:
deviceLocaleChanges/deviceCountryChangesstreams. - Diacritic-insensitive
search/sortedCountrieshelpers and afoldedDiacriticsString extension. country.flagEmojiderived from regional indicators, withCountries.flagEmojiSupportedfor platforms without flag emoji fonts.DialCodeFormatterthat enforces a dial-code prefix and survives paste and in-prefix edits.