node-ts-open-weather-map
v1.2.1
Published
Node.js typescript OpenWeatherMap api wrapper
Downloads
38
Maintainers
Readme
Simplified OpenWeatherMap API client
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',
countryCode: 'gb'
})
console.log(data)
} catch (error) {
console.log(error)
}
Installation
$ npm i node-ts-open-weather-map
Credits
This software uses the following open source packages:
License
MIT