1.0.1 ā€¢ Published 2 years ago

weather-app-details v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

Show your support

Give a ā­ļø if this project helped you!