1.0.0 • Published 10 months ago

weatherjs-promise v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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)
})
1.0.0

10 months ago