From 3167fabf8cd6a397668400f4283718451f435790 Mon Sep 17 00:00:00 2001 From: Karan Raina Date: Mon, 14 Oct 2024 22:28:52 +0530 Subject: [PATCH] assume onPort if -- node is set (#530) * assume onPort if -- node is set * doc: onPort assumed to be true is node script is provided * dropped support for node v14.x and v16.x --------- Co-authored-by: Matteo Collina --- README.md | 1 + autocannon.js | 5 +++++ test/onPort.test.js | 54 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/README.md b/README.md index dac38ed0..144f5e6e 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ Available options: Start the command listed after -- on the command line. When it starts listening on a port, start sending requests to that port. A URL is still required to send requests to the correct path. The hostname can be omitted, `localhost` will be used by default. + If the command after -- is `node