external-ip
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -13,6 +13,4 @@ #!/usr/bin/env node | ||
program | ||
.option('-R, --replace', 'replace services set with -s insted of adding') | ||
.option('-s, --services <url>', | ||
'url of service that returns the IP in the HTML body, one per -s, required if using -R ', | ||
collect, []) | ||
.option('-R, --replace', 'replace internal services instead of extending them.') | ||
.option('-s, --services <url>', 'service url, see examples, required if using -R', collect, []) | ||
.option('-t, --timeout <msec>', 'set timeout per request', parseInt) | ||
@@ -19,0 +17,0 @@ .option('-P, --parallel', 'set to parallel mode'); |
{ | ||
"name": "external-ip", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A node.js library to get your external ip from multiple services", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -60,3 +60,3 @@ #external-ip [![Build Status](https://travis-ci.org/J-Chaniotis/external-ip.svg?branch=master)](https://travis-ci.org/J-Chaniotis/external-ip) ![Dependencies](https://david-dm.org/J-chaniotis/external-ip.svg) | ||
* **replace:** `Boolean` if true, replaces the internal array of services with the user defined, if false, extends it, default: `false` | ||
* **timeout:** Timeout per request in ms, default `500` | ||
* **timeout:** Timeout per request in ms, default `1000` | ||
* **getIP:** `'sequential'` Sends a request to the first url in the list, if that fails sends to the next and so on. `'parallel'` Sends requests to all the sites in the list, on the first valid response all the pending requests are canceled. default: `'sequential'` | ||
@@ -81,4 +81,4 @@ | ||
-h, --help output usage information | ||
-R, --replace replace services set with -s insted of adding | ||
-s, --services <url> url of service that returns the IP in the HTML body, one per -s, required if using -R | ||
-R, --replace replace internal services instead of extending them. | ||
-s, --services <url> service url, see examples, required if using -R | ||
-t, --timeout <msec> set timeout per request | ||
@@ -85,0 +85,0 @@ -P, --parallel set to parallel mode |
23727
520