Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loadtest

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadtest - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

lib/cli-wrapper.js

18

lib/loadtest.js

@@ -367,16 +367,16 @@ 'use strict';

// consume the argument
var argument = nextArgument(args);
var argument = args.shift();
switch(argument)
{
case '-n':
options.maxRequests = nextArgument(args);
options.maxRequests = args.shift();
return true;
case '-c':
options.concurrency = nextArgument(args);
options.concurrency = args.shift();
return true;
case '-t':
options.maxSeconds = nextArgument(args);
options.maxSeconds = args.shift();
return true;
case '--rps':
options.requestsPerSecond = nextArgument(args);
options.requestsPerSecond = args.shift();
return true;

@@ -394,10 +394,2 @@ case '--noagent':

/**
* Get the next argument and remove it from the list.
*/
function nextArgument(args)
{
return args.splice(0, 1)[0];
}
/**
* Process command line arguments.

@@ -404,0 +396,0 @@ */

{
"name": "loadtest",
"version": "0.1.1",
"version": "0.1.2",
"description": "Load test scripts.",

@@ -23,2 +23,7 @@ "homepage": "http://milliearth.org/",

},
"bin": {
"loadtest": "lib/cli-wrapper.js",
"testserver": "lib/cli-wrapper.js"
},
"preferGlobal": true,
"scripts": {

@@ -25,0 +30,0 @@ "test": "node test.js"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc