Weather
Simple Weather API client for accessing weather data based on location.
- package:
@deepagent/weather - exports:
class WeatherClient,namespace weather - env vars:
WEATHER_API_KEY - source
- weatherapi.com api docs
Install
npm install @deepagent/weatheryarn add @deepagent/weatherpnpm add @deepagent/weatherUsage
import { WeatherClient } from '@deepagent/weather'
const weather = new WeatherClient()
const res = await weather.getCurrentWeather('new york')