node-clima
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -67,2 +67,3 @@ var request = require('request'); | ||
clima.prototype.language = 'en'; | ||
clima.prototype.apikey = ''; | ||
@@ -69,0 +70,0 @@ clima.prototype.format = ''; |
{ | ||
"name": "node-clima", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Simple wrapper for OpenWeatherMap API", | ||
@@ -5,0 +5,0 @@ "author": "Roberto Serrano Diaz-Grande", |
@@ -22,11 +22,11 @@ [![Build Status](https://travis-ci.org/robfree/node-clima.svg?branch=master)](https://travis-ci.org/robfree/node-clima) | ||
var c = new clima({ | ||
format: 'json', // required | ||
units: 'Celsius' // optional | ||
format: 'json', // required | ||
units: 'Celsius' // optional | ||
}); | ||
c.currentByCityName({ | ||
cityName: 'London' | ||
cityName: 'London' | ||
callback: function(err, data) { | ||
console.log(data); | ||
console.log(data); | ||
} | ||
}); |
10341