Détail du package

@flystorage/local-fs

duna-oss14.4kMIT1.1.0

fs, file, storage, flystorage

readme

Flystorage adapter for the local filesystem

This package contains the Flystorage adapter for the local filesystem.

Installation

Install all the required packages

npm install --save @flystorage/file-storage @flystorage/local-fs

Usage

import {FileStorage} from '@flystorage/file-storage';
import {LocalStorageAdapter} from '@flystorage/local-fs';

const rootDirectory = resolve(process.cwd(), 'my-files');
const adapter = new LocalStorageAdapter(rootDirectory);
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/local-fs

1.1.0

Added

  • AbortSignal Support

1.0.0

Major Changes

  • First 1.0.0 release