Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@flystorage/in-memory

duna-oss20.8kMIT1.1.0TypeScript support: included

test double, memory, file, storage, flystorage, filesystem

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.

changelog

@flystorage/in-memory

1.1.0

Changes

  • Use a Buffer for internal storage

1.0.0

Major Changes

  • First 1.0.0 release