Contains data for Weather Application
npm install weather-app-details> Contains data for Weather Application
``sh`
npm install weather-app-details
`javascript
// This package exports three functions, i.e) allTimeZones(), timeForOneCity(), nextNhoursWeather()
const {
allTimeZones,
timeForOneCity,
nextNhoursWeather,
} = require("weather-app-details");
// allTimeZonesData contains the allcitiesdata like CityName, DateAndTime, TimeZone, Temperature, Humidity, Precipitation values
let allTimeZonesData = allTimeZones();
// timeForACity consists of DateAndTime along with city Name for provided city name
let timeForACity = timeForOneCity(cityName);
// nextNHoursWeatherData consists of next n requested hours temperature
let nextNHoursWeatherData = nextNhoursWeather(
dateAndTime,
hours,
allTimeZonesData
);
``
š¤ Vijai Sivakumar
- Github: @ks-vijai
Give a āļø if this project helped you!
---