
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@metaphorjs/observable
Advanced tools
A javascript event system implementing multiple patterns: observable, collector and pipe.
Observable:
var Observable = require("metaphorjs-observable");
var o = new Observable;
o.on("event", function(x, y, z){ console.log([x, y, z]) });
o.trigger("event", 1, 2, 3); // [1, 2, 3]
Collector:
var Observable = require("metaphorjs-observable");
var o = new Observable;
o.createEvent("collectStuff", "all");
o.on("collectStuff", function(){ return 1; });
o.on("collectStuff", function(){ return 2; });
var results = o.trigger("collectStuff"); // [1, 2]
Pipe:
var Observable = require("metaphorjs-observable");
var o = new Observable;
o.createEvent("some-job", "pipe");
o.on("some-job", function(value){
return value + value;
});
o.on("some-job", function(value){
return value * value;
});
var result = o.trigger("some-job", 1); // 4
FAQs
A javascript event system
We found that @metaphorjs/observable 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.