Socket
Socket
Sign inDemoInstall

ezy-weather-api

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ezy-weather-api

A ez'y way to get weather data


Version published
Weekly downloads
5
increased by150%
Maintainers
1
Install size
485 kB
Created
Weekly downloads
 

Readme

Source

Ezy Weather API

Install ⌨⌨

npm install ezy-weather-api

Usage


const weather = require('ezy-weather-api');



weather.getForecast('lat','long','units').then(result=>{
	console.log(result);
}); 


// this will get the weather for the given lat and long


weather.getLatAndLong('New york');

// What do you get?  You get New Yorks latitude and longitude of course 😂😂😂😂😂


Docs

This.getForecast();

Params

Latitude

Longitude

Units: optional defualts to auto

Auto is based on your latitude and longitude and time zone

This.getLatAndLong();

Params

Query: this is required and is to find out the latitude and longitude of a given location

Notes

  • This is a basic npm package for making use of the dark sky weather api and basically just makes it easier to get the data.

  • In order to use this package you will need to get an api key from darksky.net

Attribution

  • Powered by Dark Sky

Keywords

FAQs

Last updated on 26 Mar 2019

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