1.1.0 • Published 3 years ago

world-countries-population-data v1.1.0

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

WORLD COUNTRIES REGIONS POPULATION DATA

version

Population data of countries, regions, total world, continents, unions from year 1960 to 2020

Installing

npm i world-countries-population-data

Example usage

const data = require('world-countries-population-data')

// to get population of each country in a particular year
data.getPopulationByYear(year)

// to get population in each year of a particular country
data.getPopulationOfCountry(countryName)

// to get population by year and country
data.getPopulationByCountryAndYear(countryName, year)

// to get population by country code and optional year (example USA, IND)
const getPopulationByCountryCode = function (countryCode, year = null)

// to get population of world by particular year
data.getWorldPopulationByYear(year)

// population of world from begging (1960) to year (2020)
data.getWorldPopulationData()

Feel free to contribute and make it better

Possible future additions

Make continent and region data more easily accessible

Population of countries states and region

How to contribute

These are the steps required:

# Clone the repo (or better your fork of it)
git clone https://github.com/iamsahil1910/world-countries-population-data.git
cd world-countries-population-data

# Create new branch
git checkout -b new-branch

Make Changes

# If all is ok commit and push
git add .
git commit
git push

# Then send a pull request with your changes.
1.1.0

3 years ago

1.0.6

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago