@authentik8/es-eventstore
v0.2.2
Published
Libary for configuring Event Stores associated with event-sourcing
Downloads
2
Readme
@authentik8/es-eventstore
This package provides my take on an event store, with a number of configured back-ends
Installation
npm install @authentik8/es-eventstore
Usage
import {
getEventStore,
createInMemoryDriver,
createFilesystemDriver
} from '@authentik8/es-eventstore';
const inMemoryStorage = createInMemoryDriver();
const fileStorage = createFilesystemDriver();
const inMemoryEventStore = getEventStore(inMemoryStorage)
const filesystemEventStore = getEventStore(fileStorage);