2.1.2 • Published 3 years ago

global-countries v2.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

global-countries-node-sdk

Nodejs sdk for getting all countries, their call codes, Alpha-2 code/ Alpha-3 code and flags.

 npm i global-countries
// Require the library
const globalCountries = require('global-countries')
// Get capital
const country  = "IRAQ"
const iraqCapital = globalCountries.getCountryCapital(country)
console.log("Capital of IRAQ is", iraqCapital.toUpperCase())
// Get flag
const country  = "IRAQ"
const iraqFlag = globalCountries.getCountryFlag(country)
// get call code
const country  = "IRAQ"
const iraqCallCode = globalCountries.getCountryCallCode(country)
2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago