node-ts-open-weather-map
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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

/node-ts-open-weather-map/

    Package Sidebar

    Install

    npm i node-ts-open-weather-map

    Weekly Downloads

    17

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    44.2 kB

    Total Files

    25

    Last publish

    Collaborators

    • ovaar