all-sh-countries
v1.0.6
Published
countries
Downloads
16
Readme
Countries
Countries json plugins contains all countries names & dial_codes (as +20) and codes (as EG).
Install :)
npm i all-sh-countries
Or
yarn add all-sh-countries
const {countries, GetDialCode, GetCountry, GetCode} = require('all-sh-countries'); console.log(countries);
[
{
name: "",
dial_code: "",
code: "",
cities: ""
},
...
]
| Attribute | How to work | | ----------- | --------------------------------------------------- | | countries | return array of all countries | | GetDialCode | GetDialCode(name of country or code of country) | | GetCountry | GetCountry(dial_code of country or code of country) | | GetCode | GetCode(name of country or dial_code of country) |