屋 ya - simple glob pub/sub store
Simple to use
simple event listening and emitting
const ya = const store = store store
bar
glob ( minimatch ) event listening
store store // not matched by above globstorestore
console
/users/123 123/users/456 456
About
Simple glob ( minimatch ) event emitting and listening.
Why
A nuggest above simple mutable {}
state management and barebones EventEmitting, but nothing sophisticated like MobX or Redux.
Diffing, mutation and notification is all up to the user/programmer.
For who?
For people or projects that don't need a sophisticated store and can manage with the barebones.
This helps you maintain your ad-hoc mutable vanillajs {}
state.
Good for tiny projects and prototyping where there is no point in configuring and maintaining a sophisticated store ( yet ).
How
Alternatives
Test
npm test