1.5.2 • Published 6 years ago
get-the-weather v1.5.2
get-the-weather
Node.js module for getting the weather from Dark Sky with a Zip Code.
INSTALL
npm install get-the-weather --save
HOW TO USE
Sign up for a Dark Sky API Key here
Sign up for a Zip Code API key here
Create an options object:
let options = {
zip: `Zip code here`,
DarkSkyKey: `Dark Sky API key here`,
ZipCodeApiKey: `zipcodeapi.com key here`
}
Require and Run the function!
const getTheWeather = require("get-the-weather");
getTheWeather(options)
.then(result => console.log(result.currently.temperature));
This returns a Promise!