Skip to content

Nathan-html/weather-api.js

Repository files navigation

Weather data by WeatherAPI.com

About

weather-api.ts is an unofficial plugin that allows you to easily interact with the API of weatherapi.com

Installation

npm install weather-api.ts
yarn add weather-api.ts
pnpm add weather-api.ts

Uses

// get realtime weather data with a query
let weatherData;
await new Weather(KEY, LANG, FORMAT)
    .realtime({q: QUERY})
        .then(result => {
            weatherData = result;
        })
        .catch(error => {
            console.error(error);
        });

Links

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to report an issue on Github or send me a mail.

WeatherAPI.com

About

weather-api.js is a simple Node.js module that allows you to easily interact with the API of weatherapi.com.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy