
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
median-stream
Advanced tools
median-stream is a stream that takes an input of integers and pipes out the median of those integers
median-stream is a stream that takes an input of integers and pipes out the median of those integers.
If you pipe in 1 2 3 4 5
, then it will only output 3
.
However if you pipe 1
2
3
4
5
, then it will output 1
, 1.5
, 2
, 2.5
, 3
.
example.js
'use strict';
import MedianStream from 'median-stream'
let medianStream = new MedianStream()
medianStream.on('error', function(err) { console.log('Error:', err.stack) })
process.stdin.pipe(medianStream).pipe(process.stdout)
terminal
echo 1 2 3 4 5 | node example.js
ISC
Shuan Wang (shuanwang@gmail.com)
FAQs
median-stream is a stream that takes an input of integers and pipes out the median of those integers
The npm package median-stream receives a total of 1 weekly downloads. As such, median-stream popularity was classified as not popular.
We found that median-stream 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.