Socket
Socket
Sign inDemoInstall

weather-forecaster

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

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
5
decreased by-16.67%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 10 Oct 2021

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