![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
programmatic tool for load-testing in node-js for scenarios with heavy logic.
Parameterizing of parts in request descriptors are done using the tsung placeholders style,
i.e using placeholders wrapped with %%_
and %%
, example: %%_param1%%
will replace this expression with the value in agent.params.param1
.
agent.params
collection starts as a clone of the macro.options.params
provided by the user.
User may manipulate the agent.params
using onResponse(err, response)
hook,
which is called on a context with reference to agent
.
Note in the following example how the 2nd request adds to the cart the product-id returned by the 1st request.
module.exports =
{ options:
{ params:
{ env: "stage"
}
, scenario:
[ { type: "req"
req :
[ "http://%%_env%%.mydomain.com/promo-data"
]
, onResponse: function(e, r) {
if (e) throw e;
this.agent.params.product = JSON.parse(r.body).product
}
}
, { type: "wait", wait: 1500 }
, { type: "req"
req:
[ { method: "POST"
, url: "http://%%_env%%.mydomain.com/addToChart"
, body: {
pid: "%%_product%%"
}
}
]
}
]
}
}
TBD
FAQs
logiload ==========
The npm package logiload receives a total of 2 weekly downloads. As such, logiload popularity was classified as not popular.
We found that logiload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.