@flystorage/in-memory
v0.1.4
Published
<img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />
Downloads
1,315
Maintainers
Readme
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.