weather-by-date

1.0.0 • Public • Published

weather-by-date

Node.js API to retrieve average temperature for given date.

https://nodei.co/npm/weather-by-date.png?downloads=true&downloadRank=true&stars=true

contributions welcome

install

npm install weather-by-date

example

weatherByDate(11, 3, 1997, function(err, temperature){
 
    if (err) {
        console.log(err);
    }
    else {
 
        console.log(temperature);
        
    }
 
});

api

getTemperatureForDate(month, day, year, callback)

Type: function

month number

day number

year number

callback function

Returns average temperature for given date.

temperature

Type: number

Average temperature for given date.

license

MIT © Rishi Masand

Dependents (0)

Package Sidebar

Install

npm i weather-by-date

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • darthbatman