20 of the first 20 results of the npm registry's search for “country code” match the need, led by country-code-lookup (298,463 weekly downloads).
The first 20 results (or all, if fewer) of the npm registry's own search for “country code” (npm's relevance order), keeping those whose name, description or keywords mention a word of the need, then sorted by weekly downloads. Descriptions are the authors' own words. Data fetched 2026-11-20.
| Package | By | Description | Weekly downloads | Updated |
|---|---|---|---|---|
| country-code-lookup v0.2.2 | richard.astbury | “Finds countries by various country codes” | 298,463 | 2026-11-03 |
| iso-3166-1-alpha-2 v1.0.2 | georgzoeller | “Simple module providing ISO-3166-1-alpha-2 country code to english country name lookup and reverse lookup” | 112,297 | 2024-03-30 |
| iso-country-currency v0.8.0 | sth757 | “Get country name, currency, currency symbol, ISO 4217 numeric code and minor units via ISO2 country code” | 78,904 | 2026-10-14 |
| country-iso-3-to-2 v1.1.1 | alcar | “Convert a country code ISO 3166-1 Alpha-3 to ISO 3166-1 Alpha-2” | 67,224 | 2022-07-22 |
| emoji-flags v1.3.0 | matiassingers | “return emoji flag symbol for country code” | 65,819 | 2020-05-11 |
| country-iso-2-to-3 v1.1.0 | alcar | “Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3” | 37,925 | 2019-10-21 |
| which-country v1.0.0 | vkurchatkin | “Get ISO 3166-1 alpha-3 country code for geographic coordinates” | 25,850 | 2014-08-27 |
| @sroussey/parse-address v3.3.0 | sroussey | “International street address parser for 220 jurisdictions (US, CA + 218 countries and territories), with SEC EDGAR country-code resolution” | 18,014 | 2026-09-10 |
| localized-countries v3.0.0 | marcbachmann | “Country code to name mappings for several languages” | 8,461 | 2026-01-09 |
| country-timezone v1.0.8 | amazingpankaj | “Find timezone based on country code or country name.” | 6,088 | 2019-06-10 |
| vue-country-code v1.1.3 | hantrongbinh | “Country Code Select with Vue” | 3,800 | 2022-02-09 |
| country-iso v2.0.5 | chq-matteo | “Get ISO 3166-1 alpha-3 country code for geographic coordinates.” | 3,576 | 2017-12-04 |
| coordinate_to_country v1.1.0 | itisem | “Returns and ISO 3166-1 country code for any given latitude or longitude.” | 2,929 | 2022-04-22 |
| ip-country v1.0.2 | sumanion | “Get country code based on the IP address.” | 1,850 | 2017-05-04 |
| @cprecioso/country-flag-emoji v1.0.0 | cprecioso | “Lightweight emoji flag to and from country code” | 1,379 | 2021-07-22 |
| country-city-location v1.0.13 | sayafismael | “A very usefull package for getting country name, country code, longitude, latitude. Get all cities of a country by country code.” | 1,002 | 2020-08-03 |
| @kingscode/vuetify-phone-input v0.2.0 | kings_code | “A Vuetify form control usable for phone numbers. Supports country code, auto formatting and country code recognition” | 989 | 2020-11-23 |
| country-code-splitter v1.0.4 | chetankumar | “Split country code and mobile number from mobile number. The module returns mobile number and country code.” | 495 | 2024-07-16 |
| vue-country-code-select v1.6.7 | denfedweb | “Country Code Select with Vue” | 345 | 2021-01-19 |
| country-code-flag-phone-extension-json v1.0.2 | mjhawar90 | “Javascript and JSON for Country code flag phone extension” | 200 | 2023-03-18 |
Data: npm registry search API, fetched 2026-11-20. Page built 2026-11-21 · npm packages for every need: 53 lists from the npm registry