Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
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
The npm package filter-observable-store receives a total of 1 weekly downloads. As such, filter-observable-store popularity was classified as not popular.
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.