eladshaked-country-data
v1.0.0
Published
Hi! My name is Elad and the following package will help you search and retrieve data about countries in the world.
Downloads
1
Readme
Welcome to:
eladshaked-country-data!
Hi! My name is Elad and the following package will help you search and retrieve data about countries in the world.
Download:
npm install eladshaked-country-data
and then copy this code to your javascript file:
const {show_all_countries, random_country_info, show_capital_city, show_population} = require("eladshaked-country-data/index")
EXAMPLE:
const {show_all_countries, random_country_info, show_capital_city, show_population} = require("eladshaked-country-data/index")
random_country_info()
output:
capital city of 'Belgium' Bruxelles [Brussel]
population of 'Belgium' 11433256
Functions:
- "country_name" must to start with Capital letter!
show_all_countries() // => returns a list with all countries in data
random_country_info() // => returns an random country with all data
show_capital_city("country_name") // => returns country's capital city
show_population("country_name") // => returns country's population