
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@loadmill/node-recorder
Advanced tools
Users of Loadmill can use node-recorder
middleware to capture traffic in their express.js apps. Later they can generate and replay the recording as API tests.
Go to Recordings App Setup and create a new application.
Copy Loadmill Tracking Id
and use it as loadmillCode
option value in expressRecorder
.
Using npm:
npm i @loadmill/node-recorder --save
Using yarn:
yarn add @loadmill/node-recorder
Use expressRecorder middleware:
const { expressRecorder } = require('@loadmill/node-recorder');
const app = require('express')();
app.use(expressRecorder({ loadmillCode: process.env.LOADMILL_CODE }));
expressRecorder accepts options
object - containing:
loadmillCode
- (REQUIRED). can be retrieved after creating a new application for recording.notSecure
- (default = false). Optionally you can make recorded traffic not be hashed.cookieExpiration
- (default = 3 minutes = 3 * 60 * 1000). expressRecorder maintain cookie to define new recording session per uniqueId(user). More about split recording session.basePath
- (default = https://dummy.domain). Define the protocol://host
of your app.app.use(expressRecorder({
loadmillCode: process.env.LOADMILL_CODE,
notSecure: false,
cookieExpiration: 10 * 60 * 1000,
basePath: 'https://loadmill.com'
}));
Loadmill node-recorder uses the debug module internally, so you can set the DEBUG environment variable to loadmill:* to see all debugging, or select individual namespaces DEBUG=loadmill:node-recorder to constrain a bit.
FAQs
Loadmill expressjs recorder middleware
The npm package @loadmill/node-recorder receives a total of 216 weekly downloads. As such, @loadmill/node-recorder popularity was classified as not popular.
We found that @loadmill/node-recorder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.