
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.
highland-before-after
Advanced tools
Highland consumers to execute before the stream is passed on or after a nil is passed on.
Schedule callbacks to run before or after values in the stream.
npm install highland-before-after
var _ = require('highland');
var before = require('highland-before-after').before;
var after = require('highland-before-after').after;
_([1, 2, 3])
.consume(before(function(callback) {
// executed once before any values are passed on
console.log('hi');
callback();
}))
.doto(function(value) {
console.log(value);
})
.consume(after(function(callback) {
// executed once after nil has been seen, but before passing on nil
console.log('goodbye');
callback();
}))
.apply(function() {});
// output:
// hi
// 1
// 2
// 3
// goodbye
FAQs
Highland consumers to execute before the stream is passed on or after a nil is passed on.
We found that highland-before-after 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.