Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

weather-api.ts

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weather-api.ts

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

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
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);
        });
  • Github
  • npm

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

Keywords

FAQs

Package last updated on 22 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc