
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Application performance index (Apdex) calculator measures user satisfaction based on response time.
You can install the package using npm:
npm install apdex
import {Apdex} from 'apdex';
const app = new Apdex(1000); // set T to 1000ms
app.add(500); // add a response time of 500ms
app.add(2000); // add a response time of 2000ms
console.log(app.apdex); // 0.5
new Apdex(T, limit)Creates a new instance of the Apdex calculator. T is the threshold response time in milliseconds, and limit is an optional parameter that limits the number of samples kept in the calculator.
add(value, error)Adds a new sample to the calculator. value is the response time in milliseconds, and error is an optional boolean flag indicating whether the sample was an error.
flush()Resets the calculator and removes all samples.
apdexReturns the current Apdex score as a number between 0 and 1.
FAQs
Application performance index (Apdex) score calculator
We found that apdex 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.