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

0.1.0 • Public • Published

Filesystem Storage

A filesystem storage implementation.

For further insights, read on.

Installation

To install this library use your favorite package manager. No additional steps are required to start using the library.

npm install @n7e/storage-fs

This library is implemented in TypeScript but can be used with JavaScript without any additional steps.

Usage

To create a filesystem storage client use the provided StorageClientBuilder implementation:

import { FilesystemStorageClientBuilder } from "@n7e/storage-fs";

const storageClientBuilder = new FilesystemStorageClientBuilder();

The builder allows us to configure a root directory:

import { resolve } from "node:path";

storageClientBuilder.withRootDirectory(resolve(process.cwd(), "storage"));

When configured, build a storage client instance:

const storageClient = storageClientBuilder.build();

Readme

Keywords

Package Sidebar

Install

npm i @n7e/storage-fs

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

15.3 kB

Total Files

14

Last publish

Collaborators

  • martin-n7e