1.0.13 • Published 5 years ago
random-places v1.0.13
RANDOM PLACES
A simple NPM Package which returns random places from around the world

Install
npm install random-places
OR
yarn add random-placesUsage
const place = require("random-places");
getRandomPlace();Response
The get random place function returns a JSON object that contains the name and country of the random place
{
"name": "Geneva",
"country": "Switzerland"
}Want to contribute?
Please check issues here!
Add More Places (Recommended for beginners. Just add name of the place and country in data.json file)