0.3.0 • Published 4 months ago

ts-s3 v0.3.0

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

ts-s3

Make "AWS SDK for JavaScript v3" easy to use.

Reference

Usage

import type { S3ClientConfig } from "ts-s3";
import { TsS3 } from "ts-s3";

const config: S3ClientConfig = { region: "us-east-1" };
const tss3 = new TsS3(config);
const response = await tss3.listObjects("bucket")
methodinputoutput
listObjectsbucket: string, prefix?: string, maxKeys?: numberPromise\<ListObjectsV2CommandOutput>
isExistObjectbucket: string, key: stringPromise\<boolean>
putObjectbucket: string,key: string,body: string | Readable | Blob | ReadableStream | Uint8Array | BufferPromise\<PutObjectCommandOutput>
getObjectbucket: string, key: stringPromise\<GetObjectCommandOutput>
getObjectInfobucket: string, key: stringPromise\<HeadObjectCommandOutput>
getObjectTextbucket: string, key: stringPromise\<string>
generatePresignedUrlbucket: string, key: string, expiration: numberPromise\<string>
deleteObjectbucket: string, key: stringPromise\<DeleteObjectCommandOutput>
deleteObjectsbucket: string,keys: string[]Promise\<DeleteObjectsCommandOutput>
copyObjectbucket: string,srcKey: string,dstKey: stringPromise\<CopyObjectCommandOutput>
0.3.0

4 months ago

0.2.1

5 months ago

0.2.0

7 months ago

0.1.0

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago