1
0
mirror of https://github.com/alibaba/anyproxy.git synced 2025-05-10 06:48:26 +00:00

update readme

This commit is contained in:
加里 2014-10-31 18:51:24 +08:00
parent 875fc34341
commit ed26fd4385
3 changed files with 7 additions and 4 deletions

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

2
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);

@ -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"
}