
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
multi-sort-stream
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
merge multiple sorted streams into a single sorted stream
var multiSort = require('multi-sort-stream')
var { Readable, Transform, pipeline } = require('stream')
var a = Readable.from([5,10,15])
var b = Readable.from([3,20,50,55])
var c = Readable.from([17,25])
pipeline(
multiSort([a,b,c], (a,b) => a < b ? -1 : +1),
Transform({
writableObjectMode: true,
transform: (row,enc,next) => next(null, JSON.stringify(row)+'\n'),
}),
process.stdout,
(err) => { if (err) console.error(err) }
)
output:
3
5
10
15
17
20
25
50
55
var multiSort = require('multi-sort-stream')
Create a readable stream
of sorted output from an array of sorted readable streams
.
opts.compare(a,b)
- comparison function (return -1 or +1)If opts
is a function, it will be used as the opts.compare
function.
npm install multi-sort-stream
bsd
FAQs
merge multiple sorted streams into a single sorted stream
The npm package multi-sort-stream receives a total of 202,884 weekly downloads. As such, multi-sort-stream popularity was classified as popular.
We found that multi-sort-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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.