Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

forecastio

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forecastio - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

.travis.yml

2

index.js

@@ -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 = {

7

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc