
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@tumbati/countries-metadata
Advanced tools
List of countries containing country code, currency, dial code, continent, capital, and flags.
List of countries containing country code, currency, dial code, continent, capital, and flags.
The purpose of this repository is to provide a detailed list of country metadata, encompassing essential information for each country. The metadata includes:
This data is stored in countries_metadata.json and can be utilized in various applications that require country-related information.
npm:
npm install @tumbati/countries-metadata
pnpm:
pnpm add @tumbati/countries-metadata
yarn:
yarn add @tumbati/countries-metadata
import { countries, type Country, findCountryByCode, getCountryByName, findCountriesByContinent } from "@tumbati/countries-metadata";
An array containing metadata about various countries.
import { countries, type Country } from "@tumbati/countries-metadata";
console.log(countries); // Array of all countries
import { findCountryByCode } from "@tumbati/countries-metadata";
const country = findCountryByCode('MW');
console.log(country); // { code: 'MW', name: 'Malawi', ... }
import { getCountryByName } from "@tumbati/countries-metadata";
const country = getCountryByName('Malawi');
console.log(country); // { code: 'MW', name: 'Malawi', ... }
import { findCountriesByContinent } from "@tumbati/countries-metadata";
const africanCountries = findCountriesByContinent('Africa');
console.log(africanCountries); // Array of all African countries
The package includes full TypeScript support with type definitions:
import { type Country } from "@tumbati/countries-metadata";
const myCountry: Country = {
code: 'US',
flag: '🇺🇸',
name: 'United States',
dial_code: '+1',
currency_code: 'USD',
continent: 'North America',
capital: 'Washington, D.C.'
};
The country data, including continent and capital information, was sourced from this Gist by tiagodealmeida. The original data was enriched by integrating additional details like dial codes and currency codes.
The flag emojis used in the metadata were sourced from the country-flag-emoji-json repository by Risan.
The countries_metadata.json file was generated by processing data from the country-flag-emoji-json repository and augmenting it with information sourced from tiagodealmeida's Gist. This resulted in a comprehensive dataset containing various details for each country.
If you have additional information or updates to the country metadata, feel free to contribute to this repository by submitting a pull request.
This repository is licensed under the MIT License.
FAQs
List of countries containing country code, currency, dial code, continent, capital, and flags.
We found that @tumbati/countries-metadata demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.