New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openweathermap-fetcher

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openweathermap-fetcher

A Wrapper for openweathermap API for node application.

1.0.0
Source
npm
Version published
Weekly downloads
3
Maintainers
0
Weekly downloads
 
Created
Source

Openweathermap-wrapper

A wrapper for openweathermap api.Currently in initial stage.

Installation

you can install this package using below npm command

npm install openweathermap-wrapper

or

yarn add openweathermap-wrapper

Usage


import { OpenWeatherMap } from 'openweathermap-wrapper';

const apiKey='your_api_key';

const openweathermap = new OpenWeatherMap({apiKey});

async function run() {
    try {
      const data = await openweathermap.fetchWeatherDataByCityName("Delhi");
      console.log("API Result:", data);
    } catch (error) {
      console.error("API Error:", error.message);
    }
  }
  
  run();

Contribution

We welcome contributions! If you'd like to contribute to openweathermap-wrapper, please follow our Contribution Guidelines.

Author

Subramanya KS

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

openweathermap

FAQs

Package last updated on 18 Nov 2024

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