From ed26fd4385527dbc0330081644d251baab865cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=A0=E9=87=8C?= Date: Fri, 31 Oct 2014 18:51:24 +0800 Subject: [PATCH] update readme --- README.md | 2 +- bin.js | 2 +- package.json | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fc694ad..06f6cad 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ Others * anyproxy uses [nedb](https://github.com/louischatriot/nedb) to save request data. Since NeDB's persistence uses an append-only format, you may get some redundant record in local file. For those dupplicated ones with the same id, just use the lastest line of record. #### throttling -* e.g. throttle to 10kb , use ``` anyproxy --throttle 10 ``` +* e.g. throttle to 10kb/s (kbyte/sec) , use ``` anyproxy --throttle 10 ``` * this is just a rough throttling for downstream, not for network simulation #### work as a module for nodejs diff --git a/bin.js b/bin.js index 4061c64..7131b89 100644 --- a/bin.js +++ b/bin.js @@ -12,7 +12,7 @@ program .option('-f, --file [value]', 'save request data to a specified file, will use in-memory db if not specified') .option('-r, --rule [value]', 'path for rule file,') .option('-g, --root [value]', 'generate root CA') - .option('-l, --throttle [value]', 'throttle speed in kb/s') + .option('-l, --throttle [value]', 'throttle speed in kb/s (kbyte / sec)') .option('-c, --clear', 'clear all the tmp certificates') .parse(process.argv); diff --git a/package.json b/package.json index 6fe9660..fffe111 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anyproxy", - "version": "2.7.1", + "version": "2.7.3", "description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.", "main": "proxy.js", "bin": { @@ -30,7 +30,10 @@ "scripts": { "test": "nodeunit test.js" }, - "repository": {}, + "repository": { + "type":"git", + "url" :"https://github.com/alibaba/anyproxy" + }, "author": "ottomao@gmail.com", "license": "ISC" }