
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.
Reduce transform stream which calculates the Pearson product-moment correlation coefficient matrix of streamed numeric data.
Reduce transform stream which computes the Pearson product-moment correlation coefficient (PCC) of a numeric data stream.
$ npm install flow-pcc
var eventStream = require( 'event-stream' ),
cStream = require( 'flow-pcc' );
// Create some data... (negatively corrrelated)
var data = new Array( 1000 ), value;
for ( var i = 0; i < data.length; i++ ) {
value = Math.random() * 50;
data[ i ] = {
'y1': 50 + value,
'y2': 50 - value
}
}
// Create a readable stream:
var readStream = eventStream.readArray( data );
// Create a new stream:
var stream = cStream()
.accessors( 'y1', function( d ) {
return d.y1;
})
.accessors( 'y2', function( d ) {
return d.y2;
})
.stream();
// Pipe the data:
readStream.pipe( stream )
.pipe( eventStream.stringify() )
.pipe( process.stdout );
Unit tests use the Mocha test framework with Chai assertions.
Assuming you have installed Mocha, execute the following command in the top-level application directory to run the tests:
$ mocha
All new feature development should have corresponding unit tests to validate correct functionality.
Copyright © 2014. Athan Reines.
FAQs
Reduce transform stream which calculates the Pearson product-moment correlation coefficient matrix of streamed numeric data.
The npm package flow-pcc receives a total of 3 weekly downloads. As such, flow-pcc popularity was classified as not popular.
We found that flow-pcc 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.