From 082def321dde7d3c4ba187dd756c14b629ba8f41 Mon Sep 17 00:00:00 2001 From: Mehmet Can Farsak <32980057+mehmetcanfarsak@users.noreply.github.com> Date: Mon, 25 Mar 2024 03:42:15 +0300 Subject: [PATCH] add details about exported countries array --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d69b2ff..84632d2 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ import { getCountryCodeFromCountryCodeOrNameOrFlagEmoji, getCountryFlagEmojiFromCountryCodeOrNameOrFlagEmoji, getCountryDialCodeFromCountryCodeOrNameOrFlagEmoji, + countries, + CountryInterface, } from "country-codes-flags-phone-codes"; @@ -62,6 +64,7 @@ console.log(getCountryNameFromCountryCodeOrNameOrFlagEmoji("US")); // United Sta console.log(getCountryCodeFromCountryCodeOrNameOrFlagEmoji("United States")); // US console.log(getCountryFlagEmojiFromCountryCodeOrNameOrFlagEmoji("US")); // 🇺🇸 console.log(getCountryDialCodeFromCountryCodeOrNameOrFlagEmoji("US")); // +1 +console.log("countries", countries); // [{ name: 'United States', code: 'US', dialCode: '+1', flag: '🇺🇸' }, ...] ```