import { forecast } from 'weather.ts'
const weather = await forecast({
latitude: 48.8566, // latitude
longitude: 2.3522, // and longitude for the desired location
current: 'temperature_2m', // wanted data
})
console.log(`It's ${weather.current.temperature_2m}°C in Paris`)- Easy to use
- Extra-fast
- Supports most of Open-Meteo features
bun install weather.tsOR
npm install weather.tsSee the docs.