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

simdummy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simdummy - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

5

lib/settings.js

@@ -35,3 +35,6 @@ "use strict"

destroy: this.parseUInt(q.d) === 1,
}
},
logging: {
request: this.parseUInt(q.lr) === 1,
},
}

@@ -38,0 +41,0 @@ c.latency.actual = u.makeNoise(c.latency.carrier, c.latency.noise)

4

lib/simserver.js

@@ -43,2 +43,6 @@ "use strict"

if (setting.logging.request) {
const now = (new Date()).toISOString()
console.log(`[${now}] ${req.method} - ${req.url}`)
}
if (res.finished) {

@@ -45,0 +49,0 @@ return

{
"name": "simdummy",
"version": "0.1.4",
"version": "0.1.5",
"description": "Simple tool for HTTP response simulation, automated and load testing",
"main": "index.js",
"scripts": {
"start": "node entry.js 9999"
"start": "NODE_ENV=production node entry.js 9999"
},

@@ -9,0 +9,0 @@ "author": "Alex Pereverzyev",

# simdummy
[![npm](https://img.shields.io/npm/v/simdummy.svg?style=flat-square)](https://www.npmjs.org/package/simdummy)
Simple tool for HTTP response simulation, automated and load testing.

@@ -83,2 +85,3 @@

- d=1 - destroy request socket
- lr=1 - log request to console

@@ -85,0 +88,0 @@

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