1.0.0 • Published 9 years ago
node-proxy-latency-tester v1.0.0
Node Poxy Latency Tester
This command line tool helps you to create a proxy that adds adds a latency between two services. This is useful for testing purposes and simulations.
Installation
via npm:
npm install node-proxy-latency-testerUsage
$ node-proxy-latency-tester -h
Usage:
node-proxy-latency-tester [OPTIONS] [ARGS]
Options:
-t, --target [NUMBER] target port (service port) (Default is 8080)
-f, --forward [NUMBER] forward port (new port through proxy) (Default is 7070)
-l, --latency [NUMBER] latency in ms (Default is 0)
-h, --help Display help and usage detailsLet's say that you have a service running on localhost:8080 and you can add a latency of 300 ms without changing the service. You can easily accomplish this with:
np -t 8080 -f 8081 -l 300Now you can use your service on port 8081 with a latency of 300 ms. You can also use np for short.
1.0.0
9 years ago