glob-store.js
Key-value store with iterator and glob semantics. Allows to store multiple values per key and can be modified during iteration.
Install with npm
npm install glob-store
Browser compatibility
To use this module in a browser, download the npm package and then use Browserify to create a standalone version.
Usage
var Store = Store; var s = ;s;s;s;s; var c i = s;while c = inext !== undefined console;
The implementation is based on glob-tree, but allows multiple values to be stored under the same key.
Store API
add(name, value)
remove(name, value)
removeAll([name])
iterator(name[, options])
values([name])
The iterator is derived from min-iterator and supports the same options
as the glob-tree iterator:
matchers
: whether to include matchers, defaults totrue
onlyMatchers
: whether to only include matchers, defaults tofalse
License
MIT