Skip to content

darthbatman/weather-by-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Retrieve average temperature for given date.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published