@flystorage/in-memory
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Flystorage adapter using memory

This package contains the Flystorage adapter that uses only memory

Installation

Install all the required packages

npm install --save @flystorage/file-storage @flystorage/in-memory

Usage

import {FileStorage} from '@flystorage/file-storage';
import {InMemoryStorageAdapter} from '@flystorage/in-memory';

const adapter = new InMemoryStorageAdapter();
const storage = new FileStorage(adapter);

⚠️ Always use the FileStorage, it is essential for security and a good developer experience. Do not use the adapter directly.

Package Sidebar

Install

npm i @flystorage/in-memory

Weekly Downloads

593

Version

0.1.4

License

MIT

Unpacked Size

18.6 kB

Total Files

10

Last publish

Collaborators

  • frankdejonge