weatherqwq
v1.0.0
Published
Free and unlimited weather data API client
Readme
WeatherQWQ Node.js SDK
Free and unlimited weather data API client.
Installation
npm install weatherqwqUsage
import { WeatherClient } from 'weatherqwq'
const client = new WeatherClient({ apiKey: 'qwq-...' })
// Current weather
const current = await client.currentWeather({ lat: 40.71, lon: -74.01 })
// 7-day forecast
const forecast = await client.forecast({ lat: 40.71, lon: -74.01, days: 7 })
// Historical data
const historical = await client.historical({
lat: 40.71, lon: -74.01,
startDate: '2024-01-01',
endDate: '2024-01-07'
})
// Air quality
const aq = await client.airQuality({ lat: 40.71, lon: -74.01 })
// Weather alerts
const alerts = await client.alerts({ lat: 40.71, lon: -74.01 })License
MIT
