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

clearweather

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clearweather

Clear Weather Api fetch calls and types for smooth and easy app builds

  • 1.0.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ClearWeather API

Learn more about the ClearWeather API.

Getting Started

Installation

npm

npm install clearweather-api

yarn

yarn add clearweather-api

Usage


const current = await fetchCurrentWeather({
  userId: "2mbhxnu4p6l11f67nx",
  openWeatherApiKey: "86f96bf40e937f815c815836aa7bc224",
  coords: {
    latitude: "43.53",
    longitude: "-22.9",
  },
  cacheTime: 3600,
  fetchEnv: "browser", // browser @default | node
});

Options


const options = {
  userId: "";  // register at https://clearweatherlive.com/signup to get your userId
  openWeatherApiKey: "<openweathermap-api-key>";
  coords: {
    latitude: string,
    longitude: string,
  };
  cacheTime: number // time in milliseconds
};

FAQs

Package last updated on 26 Mar 2022

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