{"id":18130455,"url":"https://github.com/sahilsahil934/world-countries-population-data","last_synced_at":"2026-05-07T11:32:31.666Z","repository":{"id":57399350,"uuid":"418977401","full_name":"sahilsahil934/world-countries-population-data","owner":"sahilsahil934","description":"npm package to get population of Countries, regions, world, continent since 1960 to 2020","archived":false,"fork":false,"pushed_at":"2021-10-23T15:17:15.000Z","size":518,"stargazers_count":1,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T04:55:09.409Z","etag":null,"topics":["countries","hacktoberfest","historic","nodejs","npm","population"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sahilsahil934.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-19T15:12:24.000Z","updated_at":"2021-10-23T15:17:18.000Z","dependencies_parsed_at":"2022-09-01T16:21:48.299Z","dependency_job_id":null,"html_url":"https://github.com/sahilsahil934/world-countries-population-data","commit_stats":null,"previous_names":["sahilsahil934/world-countries-population-data","iamsahil1910/world-countries-population-data"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sahilsahil934/world-countries-population-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilsahil934%2Fworld-countries-population-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilsahil934%2Fworld-countries-population-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilsahil934%2Fworld-countries-population-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilsahil934%2Fworld-countries-population-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sahilsahil934","download_url":"https://codeload.github.com/sahilsahil934/world-countries-population-data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilsahil934%2Fworld-countries-population-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32735122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countries","hacktoberfest","historic","nodejs","npm","population"],"created_at":"2024-11-01T11:07:54.068Z","updated_at":"2026-05-07T11:32:31.653Z","avatar_url":"https://github.com/sahilsahil934.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#   WORLD COUNTRIES REGIONS POPULATION DATA\n\n[![version](https://img.shields.io/npm/v/world-countries-population-data)](https://www.npmjs.com/package/world-countries-population-data)  \n\nPopulation data of countries, regions, total world, continents, unions from year 1960 to 2020\n\n## Installing\n\n``` bash\nnpm i world-countries-population-data\n```\n\n\n## Example usage\n\n``` javascript\nconst data = require('world-countries-population-data')\n\n// to get population of each country in a particular year\ndata.getPopulationByYear(year)\n\n// to get population in each year of a particular country\ndata.getPopulationOfCountry(countryName)\n\n// to get population by year and country\ndata.getPopulationByCountryAndYear(countryName, year)\n\n// to get population by country code and optional year (example USA, IND)\nconst getPopulationByCountryCode = function (countryCode, year = null)\n\n// to get population of world by particular year\ndata.getWorldPopulationByYear(year)\n\n// population of world from begging (1960) to year (2020)\ndata.getWorldPopulationData()\n```\n\nFeel free to contribute and make it better\n\n## Possible future additions\n\n### Make continent and region data more easily accessible\n### Population of countries states and region\n\n\n## How to contribute\n\nThese are the steps required:\n\n``` bash\n# Clone the repo (or better your fork of it)\ngit clone https://github.com/iamsahil1910/world-countries-population-data.git\ncd world-countries-population-data\n\n# Create new branch\ngit checkout -b new-branch\n\nMake Changes\n\n# If all is ok commit and push\ngit add .\ngit commit\ngit push\n\n# Then send a pull request with your changes.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahilsahil934%2Fworld-countries-population-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsahilsahil934%2Fworld-countries-population-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahilsahil934%2Fworld-countries-population-data/lists"}