0.0.7 • Published 10 years ago

assault v0.0.7

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

assault

To get started run

npm install assault -g

here is an example of cli usage

assault -f ./request.json -m 1000 -c 10 -t 10000

The above command starts a queue with the contents of the request file sets the max number of requests to 1000 and the concurrency to 10. It also sets a timeout of 10000 ms. No request can take more than 10000ms.

The data in the request file can contain any valid Object that can be accepted by the request npm module. This is an example of a POST with a raw JSON body. This also sets Content-Type: application/json in the request headers.

contents of ./request.json

{
    "method":"POST",
    "url":"https://api.SOMEAPI.com/someEndPoint",
    "json":{
        "query":"JSON PARAM"
    },
    "timeout":10000
}

MORE CONCISE INSTRUCTIONS TO COME

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago