A simple NPM Package which returns random data based on your search parameter
npm install get-random-suggestions
OR
yarn add get-random-suggestions
const random = require("get-random-suggestions");
random("tour");
The random function returns a JSON object that contains the data of the parameter that you passed in
{
"area": "Chhattisgarh",
"place": "Patna"
}
Please check issues here!
Add More Data (Recommended for beginners. Just add data ( 2 key value pairs) and create json file based on that and import them. You can edit the current data as well.)