Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
binary-split
Advanced tools
Readme
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.
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.
const split = require('binary-split')
fs.createReadStream('log.txt')
.pipe(split())
.on('data', line => console.log(line))
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
.
binary-split is only possible due to the excellent work of the following collaborators:
FAQs
a fast newline (or any delimiter) splitter stream - like require('split') but faster
The npm package binary-split receives a total of 8,141 weekly downloads. As such, binary-split popularity was classified as popular.
We found that binary-split demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.