
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
filter-observable-store
Advanced tools
Filter down an observable store https://github.com/flams/observable-store.
A filtered observable-store will:
count
of items that match the filterloop
over items that match the filternpm install filter-observable-store
var Store = require("observable-store");
var Filter = require("filter-observable-store");
var store = new Store([5, 10, 15]);
// Create a new filter around an existing store
var filter = new Filter(store);
// Set a filter function
filter.setFilter(function (value) {
return value >= 10;
}, scope);
// Get filtered count:
filter.count(); // 2
// Loop over filtered items
filter.loop(function (value) {
// value... 10, 15...
});
// See if an item is in the filtered model
filter.has(5); // false
filter.has(10); // true
// Clear filter
filter.clearFilter();
MIT
FAQs
Filter down an observable-store
We found that filter-observable-store 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.