Documentation

👇Get started👇

Kountry →

Npm module variant of the Country-API

Available Features →

Get country data by providing country name

Get country data by providing country isocode

Get country data by providing country code

Get country data by providing a country id (1-243)

Get top countries according to GDP (ascending/descending order)

Get top countries according to population (ascending/descending order)

Sort all country data alphabetically (a-z/z-a)

The data you get will be in JSON

How to install →

Start by typing anyone command according to your preference

# Install using npm

npm install kountry


# Or install using yarn

yarn add kountry

Available Methods →

byName(countryName) : provide valid country name

byIsoCode(isoCode) : provide valid country isocode

byCountryCode(countryCode) : provide valid countryCode

byId(countryId) : provide valid country id

byGdp(sort,limit) : sort countries by Gdp

byPopulation(sort,limit) : sort countries by population

doAlphabetically(sort,limit) : sort countries alphabetically