brexe-weather-sdk
v1.0.2
Published
import { WeatherClient } from "../src/index.js";
Downloads
10
Readme
Example
import { WeatherClient } from "../src/index.js";
const client = new WeatherClient("YOUR_API_KEY");
async function run() { const weather = await client.getWeather("Colombo"); console.log("Current Weather:", weather);
const forecast :any = await client.getForecast("Colombo"); console.log("Forecast:", forecast.list.slice(0, 3)); // first 3 entries }
run();
