Simplified OpenWeatherMap API client
Example • Installation • Credits • License • Donations
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)
}
$ npm i node-ts-open-weather-map
This software uses the following open source packages:
MIT