show version info

This commit is contained in:
OttoMao 2015-01-12 11:41:56 +08:00
parent 37c3ea316f
commit df33805e17
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
12 Jan 2015: anyproxy 3.0.4:
* show anyproxy version by --version
12 Jan 2015: anyproxy 3.0.3:
* Bugfix: https throttle

5
bin.js
View File

@ -3,9 +3,12 @@
var program = require('commander'),
proxy = require("./proxy.js"),
color = require('colorful'),
fs = require("fs");
fs = require("fs"),
packageInfo = require("./package.json");
program
.version(packageInfo.version)
.option('-u, --host [value]', 'hostname for https proxy, localhost for default')
.option('-t, --type [value]', 'http|https, http for default')
.option('-p, --port [value]', 'proxy port, 8001 for default')

View File

@ -1,6 +1,6 @@
{
"name": "anyproxy",
"version": "3.0.3",
"version": "3.0.4",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js",
"bin": {