Socket
Socket
Sign inDemoInstall

weather-forecaster

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    weather-forecaster

A package that will help you obtain weather information


Version published
Weekly downloads
10
increased by233.33%
Maintainers
1
Install size
479 kB
Created
Weekly downloads
 

Readme

Source

weather-forecaster

A package that will help you obtain weather information

Usage

import weather from "weather-forecaster"

weather("istanbul")
/*
{
  date: '10/10/2021',
  location: 'Istanbul, Turkey',
  humidity: '80%',
  weather_state: 'Showers',
  weather_state_iconURL: 'https://www.metaweather.com/static/img/weather/s.svg',
  air_pressure_hPa: 1022,
  wind_speed: '20.4 kmph',
  wind_direction: 'NE',
  temp: '17.1 °C',
  visibility_range: '15 km'
}
*/

// the "date_format" option is "numeric" by default, can be used as "long" for long date response

weather("new york", { date_format: "long" })
/*
{
  date: 'October 10, 2021',
  location: 'New York, New York',
  humidity: '83%',
  weather_state: 'Light Rain',
  weather_state_iconURL: 'https://www.metaweather.com/static/img/weather/lr.svg',
  air_pressure_hPa: 1021.5,
  wind_speed: '14.1 kmph',
  wind_direction: 'ENE',
  temp: '19.0 °C',
  visibility_range: '13.2 km'
}
*/

License

MIT

Keywords

FAQs

Last updated on 10 Oct 2021

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