Commit e334b1c4 authored by Thomas Urban's avatar Thomas Urban

adding README, fixing minor issues

parent 0f218862
# stress-tool
a CLI tool for stress-testing websites
## License
MIT
## Install
```
mkdir temp
cd temp
npm i @cepharum/stress-tool
```
## Usage
Don't use `npm start` directly for npm seems to interfere with gracefully shutting down the tool. Instead use the command given in package.json directly:
```
node stress-http.js https://www.example.com/
```
......@@ -4,7 +4,7 @@
"description": "",
"main": "stress-http.js",
"scripts": {
"start": "cross-env DEBUG=* node stress-http.js https://www.game.de/",
"start": "cross-env DEBUG=* node stress-http.js https://www.example.com/",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
......
......@@ -52,6 +52,10 @@ if ( !StartUrl ) {
}
if ( !process.env.DEBUG ) {
process.env.DEBUG = "*";
}
const log = debug( "stress-test" );
log( "starting" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment