Simplified OpenWeatherMap API client
Example •
Installation •
Credits •
License •
Donations
Example
try {
const { OpenWeatherMapApi } = require('node-ts-open-weather-map')
const openWeatherMapApi = new OpenWeatherMapApi({
key: process.env.OpenWeatherMapApiKey
})
const data = await openWeatherMapApi.byCityName({
name: 'London',
countyCode: 'gb'
})
console.log(data)
} catch (error) {
console.log(error)
}
Installation
$ npm i -s https://github.com/ninox92/node-ts-open-weather-map
Credits
This software uses the following open source packages:
License
MIT
Donations