Skip to content

ovaar/node-ts-open-weather-map

Repository files navigation

Build Status Coverage Status semantic-release npm version Donate

Simplified OpenWeatherMap API client

ExampleInstallationCreditsLicenseDonations

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

Donations

Buy Me A Coffee

About

Simplified Node.js OpenWeatherMap API client with typescript

Resources

License

Stars

Watchers

Forks

Packages

No packages published