CountriesNow API
USAGE
const BASE_URL = 'https://countriesnow.space/api/v0.1/countries'
let getCountries = async () => {
const response = await fetch(`${BASE_URL}`).then(response => response.json())
const { data } = response
data.forEach((country) => {
console.log(country) // {"country": "Afghanistan", "cities": [ "Herat", "Kabul", "Kandahar", "Molah", ...]}
})
}Local Setup
Change directory
Install packages
Start Project
Run test
Contribution
Last updated

