Socket
Book a DemoInstallSign in
Socket

ezweather

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ezweather

Get the full weather info of any location in the world.

2.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

ezWeather

Get the weather of any location in the world.

Example

An example on how to use this package.

var weather = require('ezweather');
const googleAPIKEY = 'insertyourapi'; // Get your API key on https://developers.google.com/maps/documentation/geocoding/get-api-key
const darkskyAPIKEY = 'insertyourapi'; // Get your API key on https://darksky.net/dev

weather(googleAPIKEY, darkskyAPIKEY, 'Dublin', function(res) {
    console.log(res)
});

Output:

{
  currentSummary: 'Partly Cloudy',
  hourlySummary: 'Partly Cloudy',
  dailySummary: 'Light rain today and Sunday, with temperatures rising to 51°F on Sunday.',
  weatherImage: 'https://i.imgur.com/xhwr4Kb.png',
  temp: 35.08,
  tempC: 1.7,
  fullLocation: 'Dublin, Ireland'
}

Licence

Licensed under the MIT License

FAQs

Package last updated on 26 Nov 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.