JSPM

resolve-storage-lite

0.0.44-alpha.1030123733
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 719
  • Score
    100M100P100Q80015F
  • License MIT

This package serves as a driver for resolve-storage to store events using a file or in memory.

Package Exports

  • resolve-storage-lite

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (resolve-storage-lite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

resolve-storage-lite npm version

This package is a driver for resolve-es to store events using a file or a memory. This package doesn't have binary dependencies and not require additional applications (like MongoDB or SQL server).

Available Parameters

You can pass the following argument when initializing a driver:

  • pathToFile - path to a file where events will be stored. Notice, if that argument is not passed the driver will use memory to store events. In this way, when instance of application will be restarted all data will be lost.

Usage

import createDriver from 'resolve-storage-lite';

const driver = createDriver({ pathToFile: './store.db' });