1.0.1 • Published 7 years ago

@bifot/openweathermap-api v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Open Weather Map

API for openweathermap.

Install

$ npm i @bifot/openweathermap-api -S

Tests

$ npm test

Usage

// get weather by name
await api.getWeather({
  q: 'London'
})

// get weather by coordinates
await api.getWeather({
  lat: 51.51,
  lon: -0.13
})

// get weather by zip
await api.getWeather({
  zip: '94040,us'
})

License

MIT.