0.1.2 • Published 2 months ago

@flystorage/local-fs v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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.

0.1.2

2 months ago

0.1.1

2 months ago

0.1.0

4 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.5

5 months ago

0.0.6

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago