
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.
Resampling methods for variance and bias estimation. Currently implemented such techniques:
no tests yet
resample generates new samples from an input array and applies to them passed function to generate multiple estimation replicates.
Then those replicates are used to calculate mean, bias and standard error of an estimate
npm i -S resample
var { bootstrap, jackknife } = require('resample')
function mean (array) {
return array.reduce((a, b) => a + b) / array.length
}
bootstrap([1, 2, 3, 4, 5, 6, 40], mean)
// { observed: 8.71, mean: 8.74, se: 4.84, bias: 0.029, replicates: [...], samples: [...] }
The bootstrap method supports an extra parameter that sets number of samples/iterations (default: 10000)
bootstrap([1, 2, 3, 4, 5, 6, 40], mean, 10000)
Passing only number of samples without the estimator function return raw samples with replacement
bootstrap([1, 2, 3, 4, 5, 6, 40], 2))
// [[ 2, 40, 1, 1, 5, 2, 6], [2, 3, 4, 4, 2, 40, 6]]
FAQs
Resample functions
We found that resample 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.