Socket
Socket
Sign inDemoInstall

weather-yahoo

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    weather-yahoo

Search by location to get weather info from Yahoo


Version published
Weekly downloads
1
Maintainers
1
Install size
11.5 kB
Created
Weekly downloads
 

Readme

Source

Yahoo Weather

npm npm Travis

NPM

There are a ton of yahoo weather modules, mine allows access to all of the information or just a subset.

Usage

To test it out, put the below code into Tonic and see the results, however, give it time (a few seconds) to talk with yahoo servers and return an answer.

var yw = require('weather-yahoo');
var ans = {};
yw.getSimpleWeather('denver,co').then(function(res){
    console.log(res);
    ans=res;
}); // pulls just some of the info from yahoo weather

yw.getFullWeather('denver,co').then(function(res){
    console.log(res);
    ans=res;
}); // returns full yahoo weather json

Also, Yahoo has a great developer network where you can play with code and see the full json format they return.

Examples

See the example to play with the output.

Change Log

VersionDateComments
1.0.211 Jan 16clean up and doc updates
1.0.010 Jan 16Finally published it to npm

Keywords

FAQs

Last updated on 11 Jan 2016

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