Comparing version 0.1.0 to 0.1.1
@@ -66,2 +66,4 @@ var request = require('request'); | ||
function ForecastIoError(url, statusCode, body) { | ||
Error.call(this); | ||
Error.captureStackTrace(this, arguments.callee); | ||
this.request = 'GET ' + url; | ||
@@ -68,0 +70,0 @@ this.response = { |
{ | ||
"name": "forecastio", | ||
"version": "0.1.0", | ||
"description": "node.js client for Forecast.io API", | ||
"version": "0.1.1", | ||
"description": "A node.js wrapper for Forecast.io API", | ||
"main": "index.js", | ||
"engines": { | ||
"node" : ">=0.10 <0.12" | ||
}, | ||
"scripts": { | ||
@@ -7,0 +10,0 @@ "test": "mocha -R spec -s 1500 -t 3000" |
@@ -1,4 +0,8 @@ | ||
# forecastio | ||
A node.js client for Forecast.io API. | ||
forecastio | ||
========== | ||
[![Build Status](https://travis-ci.org/soplakanets/node-forecastio.svg?branch=master)](https://travis-ci.org/soplakanets/node-forecastio) | ||
A node.js client library for [Forecast.io API](https://developer.forecast.io). | ||
For explanation and more detailed info about endpoints and response format see [Forecast.IO API documentation](https://developer.forecast.io/docs/v2) | ||
@@ -15,3 +19,3 @@ | ||
## Usage | ||
Say you need a forecast for London, UK: | ||
Say you need a [forecast](https://developer.forecast.io/docs/v2#forecast_call) for London, UK: | ||
@@ -30,3 +34,3 @@ ``` | ||
### "Time Machine" Requests | ||
Forecast.io also supports 'time machine' requests. Quoting official documentation you can make request for "60 years in the past to 10 years in the future" for many places. Example: | ||
Forecast.io also supports [Time Machine requests](https://developer.forecast.io/docs/v2#time_call). Quoting official documentation you can make request for "60 years in the past to 10 years in the future" for "many places". Example: | ||
@@ -75,3 +79,3 @@ ``` | ||
- Logging (for debugging at least) | ||
- Smarter API methods (for exampel accept `Date` object in `#timeMachine()` and convert it to string) | ||
- Smarter API methods (accept `Date` object in `#timeMachine()` and convert it to string, for example) | ||
@@ -78,0 +82,0 @@ |
var assert = require('assert'); | ||
var async = require('async'); | ||
var _ = require('lodash'); | ||
var ForecastIo = require('../'); | ||
@@ -5,0 +3,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9368
7
87