Need private packages and team management tools?Check out npm Teams »

node-ts-open-weather-map

1.0.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',
    countyCode: '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

Install

npm i node-ts-open-weather-map

DownloadsWeekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

23.3 kB

Total Files

23

Last publish

Collaborators

  • avatar