1.0.13 • Published 4 years ago

random-places v1.0.13

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

RANDOM PLACES

A simple NPM Package which returns random places from around the world

image of world

Install

npm install random-places

OR

yarn add random-places

Usage

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?

Open Source Love PRs Welcome

Please check issues here!

Add More Places (Recommended for beginners. Just add name of the place and country in data.json file)

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago