@oliverhodge2/weather-wrapper
v2.1.0
Published
Lightweight wrapper for weather.gov APIs
Downloads
19
Readme
Weather Wrapper
Installation
npm install @oliverhodge2/weather-wrapper
Usage
import weatherWrapper from '@oliverhodge2/weather-wrapper'
weatherWrapper.getWeather(29.90, -81.31).then(console.log).catch(console.log)
// --------------------------------------------------------------------------
// {
// city: 'St. Augustine',
// forecast: 'A chance of rain showers. Cloudy, with a low around 55. North wind 16 to 20 mph, with gusts as high as 30 mph. Chance of precipitation is 40%. New rainfall amounts less than a tenth of an inch possible.'
// }
// --------------------------------------------------------------------------