
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
match-store
Advanced tools
A JavaScript storage that uses a function to match keys when retrieving values
A simple JavaScript storage that puts values into arrays at a specified key and uses a matching function to retrieve them. Most suitable for event emitters when used with wildcard-match.
npm install --save match-store
let Store = require('match-store');
// Settings are optional
let store = new Store({
prefix: '~', // key prefix for the internal storage to avoid clashes
match: function areOfSameLength(a, b) { // this function is used to match the keys when retrieving values
return a.length === b.length;
}
});
store.put('one.two.three', 'foo');
store.put('four.five.six', 'bar', 1);
store.put('seven', 'baz');
store.get('thirteenchars'); // ['foo', 'bar'] because the matching function only checks the length
store.get('same---length'); // ['foo'] because 'bar' had a limit of 1 retrieval
put(key, value, [uses])Saves the value to the internal storage at the specified key. The third parameter limits the number of times the value can be retrieved.
get(key)Returns an array of values with matching keys. Uses the match function provided in the settings to match the keys. If no function is set, checks the keys for equality.
del(key, [value])Removes values whose keys exactly match the provided one. If a value is provided, deletes only records that are equal to it.
FAQs
A JavaScript storage that uses a function to match keys when retrieving values
We found that match-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
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.