
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
httpstream provides a Readable stream interface (for Node 0.10 and later) that abstracts over transient upstream failures by retrying requests from where it left off.
httpstream requires Node 0.10 or later and the node-restify module. restify is not technically a dependency because the module doesn't "require" it directly. Rather, callers pass in a constructed restify client.
$ cat examples/basic.js
var mod_restify = require('restify');
var mod_bunyan = require('bunyan');
var HttpStream = require('../lib/httpstream');
var log = new mod_bunyan({
'name': 'example',
'level': 'warn',
'serializers': {}
});
var client = mod_restify.createClient({
'url': 'https://us-east.manta.joyent.com',
'log': log,
});
var stream = new HttpStream({
'client': client,
'path': '/manta/public/sdks/joyent-node-latest.pkg',
'log': log,
'highWaterMark': 10 * 1024 * 1024
});
var sum = 0;
console.log('fetching ... ');
stream.on('data', function (chunk) { sum += chunk.length; });
stream.on('end', function () {
console.log('fetched %d bytes', sum);
client.close();
});
$ node examples/basic.js
fetching ...
fetched 17562751 bytes
In classic "systems demo" fashion, the output's not interesting, but the fact that it worked.
Pull requests should be "make prepush" clean.
FAQs
Reliable Readable stream for HTTP resources
We found that httpstream 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.