weatherjs-promise
v1.0.0
Published
Promise wrapper for weather-js
Downloads
4
Readme
Weatherjs-Promise
A Promises wrapper for the weather-js npm module.
Installation
npm install weatherjs-promise --save
Usage
const weather = require('weatherjs-promise');
// search parameter is a zip code, city name, etc
// degreeType is F (Fahrenheit) or C (Celsius)
weather({ search: "Los Angeles, CA", degreeType: "F" })
.then(results => {
console.log(results)
})
.catch(err => {
console.log(err)
})