0.2.0 • Published 4 years ago

@pyramation/stream-to-s3 v0.2.0

Weekly downloads
1
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

stream-to-s3

npm install @pyramation/stream-to-s3

Stream uploads to s3

const readStream = createReadStream(filename);
const results = await asyncUpload({
    readStream,
    filename,
    bucket,
    key
});

and get detailed payload results

{ upload:
{ ETag: '"952fd44d14cee87882239b707231609d"',
    Location: 'http://localhost:9000/launchql/db1/assets/.gitignore',
    key: 'db1/assets/.gitignore',
    Key: 'db1/assets/.gitignore',
    Bucket: 'launchql' },
magic: { type: 'text/plain', charset: 'us-ascii' },
contentType: 'text/plain',
contents:
{ uuid: '278aee01-1404-5725-8f0e-7044c9c16397',
    sha: '7d65523f2a5afb69d76824dd1dfa62a34faa3197',
    etag: '952fd44d14cee87882239b707231609d' } }

variables

production

AWS_REGION defaults us-east-1 AWS_SECRET_KEY AWS_ACCESS_KEY

testing

BUCKET_NAME=yourbucket

using minio

values:

MINIO_ENDPOINT=http://localhost:9000 AWS_ACCESS_KEY=minio-access AWS_SECRET_KEY=minio-secret

0.2.0

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago