
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
flyd-eithers
Advanced tools
A utility library for working with Eithers in flyd streams.
This allows for error bubbling and safe transformations within flyd streams. Examples below.
You need to provide your own Either constructor/lib/implementation. This lib was tested with Eithers from both Sanctuary and Data.Either.
var S = require('Sanctuary');
var flydEithers = require('flyd-eithers')(S);
var flyd = require('flyd');
var a = flyd.stream();
var c = flydEithers
.toEither(a)
.map(function(x) { return x + 1; })
.scan(function(acc, x) { return acc + x; }, S.Right(10));
flyd.on(function(x) {
console.log(x);
}, c);
var count = 0;
setInterval(function() {
count++;
a(count);
}, 1000);
// Right(12);
// Right(15);
// etc..
var S = require('Sanctuary');
var flydEithers = require('flyd-eithers')(S);
var flyd = require('flyd');
var a = flyd.stream();
var c = flydEithers
.toEither(a)
.map(function(x) { return x + 1; })
.scan(function(acc, x) { return acc + x; }, S.Right(10));
flyd.on(function(x) {
console.log(x);
}, c);
function mockHttpRequest() {
setTimeout(function() {
a(S.Left('error 404'));
}, 100);
}
mockHttpRequest();
// Left('error 404') // Safe travel through map and scan :)
FAQs
A utility library for using Eithers in flyd streams
We found that flyd-eithers 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.