0.1.7 • Published 10 months ago

@flystorage/aws-s3 v0.1.7

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

Flystorage adapter for AWS S3

This package contains the Flystorage adapter for AWS S3 using the V3 SDK.

Installation

Install all the required packages

npm install --save @flystorage/file-storage @flystorage/aws-s3 @aws-sdk/client-s3

Usage

import {FileStorage} from '@flystorage/file-storage';
import {AwsS3StorageAdapter} from '@flystorage/aws-s3';
import {S3Client} from '@aws-sdk/client-s3';

const client = new S3Client();
const adapter = new AwsS3StorageAdapter(client, {
    bucket: '{your-bucket-name}',
    prefix: '{optional-path-prefix}',
});
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.7

10 months ago

0.1.5

11 months ago

0.1.2

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.1

1 year ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago