1.0.0 • Published 1 year ago

elad-shaked-countries v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Welcome to:

countries-elad-shaked!

Hi! My name is Elad and the following package will help you search and retrieve data about countries in the world.

Download:

 npm install countries-elad-shaked

and then copy this code to your javascript file:

const {show_all_countries, random_country_info, show_capital_city, show_population} = require("../index")

EXAMPLE:

const {show_all_countries, random_country_info, show_capital_city, show_population} = require("../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