Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
rereadable-stream
Advanced tools
A simple standards-based stream that can be read again from begining.
The module exposes a Writable stream that you can replay at any given moment to any number of Writable outputs. Think of it as a DVR feature for Node.js streams - one stream can start playing, but others may want to join in at any given point in time and start reading from the begining.
Usage:
const {ReReadable} = require("rereadable-stream");
let rereadable = fs.createReadStream("myfile")
.pipe(new ReReadable(options));
srv.on("connection", (sock) => sock.pipe(rereadable.rewind()));
The module exposes a simple API on as an extension a standard Writable stream:
The options are:
If one of readable stream cannot cope with the speed of other streams drop
events will be emitted to inform about it.
rewound.on("drop", (count) => console.log(`dropped ${count} items`));
Notice: For version 1.0.0 only object streams are well tested. There's no reason why buffer stream should not work, but they won't follow any sensible limits. This will be fixed in 1.2.0.
See LICENSE (MIT).
For other licensing options please open an issue or contact the author at opensource (at) signicode.com
FAQs
A simple standards-based stream that can be read again from begining.
We found that rereadable-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.