1.3.2 • Published 2 years ago

tiny-s3-uploader v1.3.2

Weekly downloads
6
License
MPL-2.0
Repository
github
Last release
2 years ago

tiny-s3-uploader

A tiny S3 uploader which doesn't need the fat aws-sdk.

const { S3 } = require("tiny-s3-uploader")
const client = new S3(
    "s3.eu-west-2.amazonaws.com", // The AWS endpoint.
    "ACCESS_KEY_ID_HERE", // The AWS access key ID.
    "SECRET_ACCESS_KEY_HERE", // The AWS secret access key.
    "bucket.example.com", // The AWS bucket.
)

// In a async function...
await client.upload(
    "test.txt", // The key to the file.
    "public-read", // The ACL to the file.
    "binary/octet-stream", // The content type of the file.
    Buffer.from("Hello World!"), // The Buffer to send.
)
1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.2.1

2 years ago

1.0.0

5 years ago