
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
openweathermap-fetcher
Advanced tools
A fetcher for openweathermap api.Currently in initial stage.
To use this package API key of openweathermap is needed. To get this you need to
currently tested on free account openweather API.
you can install this package using below npm command
npm install openweathermap-fetcher
or
yarn add openweathermap-fetcher
import { OpenWeatherMap } from 'openweathermap-fetcher';
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();
fetchWeatherDataByCityName(cityName:string)
The method will fetch the weather data by taking cityname as an argument and returns weather data.
fetchWeatherDataByCoordinates(latitude:string,longitude:string)
This method will fetch the weather data by taking longitude and latitude as an argument and returns weather data.
fetchForecastDataByCityName(cityName:string)
The method will fetch the forecast data by taking cityname as an argument and returns weather data.
fetchForecastDataByCoordinates(latitude:string,longitude:string)
This method will fetch the forecast data by taking longitude and latitude as an argument and returns weather data.
We welcome contributions! If you'd like to contribute to openweathermap-wrapper, please follow our Contribution Guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A Wrapper for openweathermap API for node application.
We found that openweathermap-fetcher demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.