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

1.0.0 • Public • Published

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.

/@flystorage/local-fs/

    Package Sidebar

    Install

    npm i @flystorage/local-fs

    Weekly Downloads

    1,711

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    32.5 kB

    Total Files

    13

    Last publish

    Collaborators

    • frankdejonge