weather-app-details
v1.0.1
Published
Contains data for Weather Application
Downloads
11
Maintainers
Readme
Contains data for Weather Application
Install
npm install weather-app-details
Usage
// 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
);
Author
👤 Vijai Sivakumar
- Github: @ks-vijai
Show your support
Give a ⭐️ if this project helped you!