country-telephone-currency-data
Version:
Has country codes according to iso alpha2 and also telephone prefixes for for all countries in the world. PR very welcome
31 lines (21 loc) • 1.03 kB
Markdown
Country data list country-telephone-alpha2-data for usage to reflect flag and phone prefix.
As value to the server can bu used prefix or numeric country code.
All data is according to [iso](https://www.iso.org/obp/ui/#search/code//)
Data list adapted for usage with select for showing countries and flags using [flag-icon-css](https://github.com/lipis/flag-icon-css/)
Inspired by [country-telephone-data](https://github.com/mukeshsoni/country-telephone-data/)
Via [npm](https://www.npmjs.com/package/country-telephone-currency-data):
npm install country-telephone-currency-data
[](https://codesandbox.io/s/country-telephone-currency-data-c5mez)
```js
{
countryName: "Afghanistan (افغانستان)",
id: "af",
dialCode: "+93",
countryCode: "004",
currencyCode: "AFN",
currencyName: "Afghani"
}
```