A simple NPM Package which returns [random places]
const place = require("random-places");
console.log(getRandomPlace());
• getRandomPlace() returns an object containing name and country
{
"name": "Geneva",
"country": "Switzerland"
}
Please check issues here!
Add More Places (Recommended for beginners. Just add name of the place and country in data.json file)