Skip to content

Commit

Permalink
add details about exported countries array
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcanfarsak committed Mar 25, 2024
1 parent 456b0d7 commit 082def3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import {
getCountryCodeFromCountryCodeOrNameOrFlagEmoji,
getCountryFlagEmojiFromCountryCodeOrNameOrFlagEmoji,
getCountryDialCodeFromCountryCodeOrNameOrFlagEmoji,
countries,
CountryInterface,
} from "country-codes-flags-phone-codes";


Expand All @@ -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: '🇺🇸' }, ...]

```

Expand Down

0 comments on commit 082def3

Please sign in to comment.