@jsvfs/adapter-minio-s3
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

JSVFS Adapter: MinIO S3

The official adapter for @jsvfs/core using MinIO's Amazon S3 compatible minio module.

Snapshots and flushes can be limited by setting one or more globs in the include option. This limits any potentially destructive behavior to just those blob names which match the given patterns. Flushes are disabled by default and must be enabled by intentionally setting flushEnabled to true.

If you're looking to create new adapters, please use @jsvfs/types and look to @jsvfs/adapter-node-fs as an example.

Supported Features

  • Async commits
  • Pass-through reads
  • Snapshots
  • Flush
  • Journaling

Installation

Get it from npm:

npm install --save @jsvfs/adapter-minio-s3

Usage

This adapter requires client options to be passed per MinIO's documentation.

import { MinioS3Adapter } from '@jsvfs/adapter-minio-s3'

const adapter = new MinioS3Adapter({
  access: {
    endPoint: 'localhost',
    port: 4568,
    useSSL: false,
    accessKey: 'S3RVER',
    secretKey: 'S3RVER'
  }
})

Documentation

Complete documentation of jsvfs can be found at the jsvfs site.

Package Sidebar

Install

npm i @jsvfs/adapter-minio-s3

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

16.4 kB

Total Files

9

Last publish

Collaborators

  • aaron.nuclearfamily