pouchdb-event-store
mimimal eventStore on top of pouchdb
Usage
npm i pouchdb-event-store
const PouchDB = // or pouchdb-node / pouchdb-browser / pouchdb-react-nativeconst pouchdbEventStore = let lastId = 0const options = pouchdb: 'events' idGenerator: { return { } } viewModels: pouchdb: 'viewModel' { if !stateitems stateitems = stateitems return state } const eventStoreFactory = eventStoreFactory eventStoreFactory // or callback style eventStoreFactory