JSPM

resolve-storage-lite

0.1.1-alpha.1115132331
  • 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 an adapter 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 resolve-es adapter for storing events using a file or memory. It does not have binary dependencies and does not require additional applications (like MongoDB or SQL server).

Available Parameters

You can pass the following argument when initializing an adapter:

  • pathToFile - the path to a file where events are stored. Notice, if that argument is not passed the adapter uses memory to store events. In this case, all data is lost when an application instance is restarted.

Usage

import createAdapter from 'resolve-storage-lite';

const adapter = createAdapter({ pathToFile: './store.db' });