koa-weather
v1.3.1
Published
koa geolocation and weather service middleware
Downloads
1
Readme
koa-weather
Koajs geolocation and weather service middleware
Usage
Follow the steps in koajs to setup a koa enabled nodejs server
Then simply npm install koa-weather --save
import weatherMiddleware from 'koa-weather'
app.use(weatherMiddleware(options))
options provides a means to trigger an exception to terminate the pipeline with a 500 code error if weather data API request fails
option parameter
throwOnError
default true
Example Usage
##Third party APIs