binary-split alternatives and similar modules
Based on the "Streams" category.
Alternatively, view binary-split alternatives based on common mentions on social networks and blogs.
-
concat-stream
writable stream that concatenates strings or data and calls a callback with the result -
scramjet
Public tracker for Scramjet Cloud Platform, a platform that bring data from many environments together. -
duplexify
Turn a writable and readable stream into a streams2 duplex stream with support for async initialization and streams1/streams2 input -
into-stream
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream -
through2-concurrent
Simple Node.JS stream (streams2) Transform that runs the transform functions concurrently (with a set max concurrency) -
graphicsmagick-stream
DISCONTINUED. Fast conversion/scaling of images using a pool of long lived GraphicsMagick processes.
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of binary-split or a related project?
README
binary-split
Split streams of binary data. Similar to split but for Buffers. Whereas split is String specific, this library never converts binary data into non-binary data.
How fast is it?
On a SSD w/ a Haswell i5 1.3ghz CPU and 4GB RAM reading a 2.6GB, 5.2 million entry line delimited JSON file takes 15 seconds. Using split
for the same benchmark takes 1m23s.
Example usage
const split = require('binary-split')
fs.createReadStream('log.txt')
.pipe(split())
.on('data', line => console.log(line))
API
split([splitOn])
Returns a stream.
You can .pipe
other streams to it or .write
them yourself
(if you .write
don't forget to .end
).
The stream will emit a stream of binary objects representing the split data.
Pass in the optional splitOn
argument to specify where to split the data.
The default is your current operating systems EOL sequence (via require('os').EOL
).
For more examples of usage see test.js
.
Collaborators
binary-split is only possible due to the excellent work of the following collaborators:
- Max Ogden (@maxogden)
- Vladimir Agafonkin (@mourner)
- Martin Raifer (@tyrasd)
- Julian Gruber (@juliangruber)