Socket
Socket
Sign inDemoInstall

clearweather

Package Overview
Dependencies
9
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
1
Created

Readme

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

Last updated on 26 Mar 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc