It is used to return cities weather report
npm install all-city-weather-report
// This package exports three functions, i.e) allTimeZones(), timeForOneCity(), nextNhoursWeather()
let {
allTimeZones,
timeForOneCity,
nextNhoursWeather,
} = require("all-city-weather-report");
// => citiesWeatherReport consists of cities basic weather details like CityName, Temp, Humidity, Precipitation, etc
let citiesWeatherReport = allTimeZones();
// => dateAndTime consists of Date, Time along with city Name for provided city name
let dateAndTime = timeForOneCity(cityName);
// => consecutiveHrsData consists of consecutive hours temperature
let consecutiveHrsData = nextNhoursWeather(
dateAndTime,
hours,
citiesWeatherReport
);
👤 Sakthivel Ganapathy
- Github: @Sakthi-G
Give a ⭐️ if this project helped you!