1.0.2 ā¢ Published 2 years ago
weather-app-datas v1.0.2
Gives the weather datas of various cities
Install
npm install weather-app-datas
Usage
// This package exports three functions, i.e) allTimeZones(), timeForOneCity(), nextNhoursWeather()
let {
allTimeZones,
timeForOneCity,
nextNhoursWeather,
} = require("weather-app-datas");
let citiesWeatherReport = allTimeZones();
// => citiesWeatherReport consists of cities basic weather details like CityName, Temp, Humidity, Precipitation, etc
let dateAndTime = timeForOneCity(cityName);
// => dateAndTime consists of Date, Time along with city Name for provided city name
let consecutiveHrsData = nextNhoursWeather(
dateAndTime,
hours,
citiesWeatherReport
);
// => consecutiveHrsData consists of consecutive hours temperature
Author
š¤ Madhumita Ashok Kumar
- Github: @madhumitaAshok
Show your support
Give a āļø if this project helped you!