1.1.0 • Published 1 year ago

aws-s3-operations v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

AWS-S3-OPERATIONS

Download S3 object

Usage

Make sure to add the below environmental variables in .env file

  1. AWS_ACCESS_KEY,
  2. AWS_SECRET_ACCESS_KEY,
  3. AWS_REGION,
  4. AWS_BUCKET_NAME
const { downloadS3Object } = require('aws-s3-operations');
const {
    AWS_ACCESS_KEY,
    AWS_SECRET_ACCESS_KEY,
    AWS_BUCKET_NAME,
    AWS_REGION
} = process.env
downloadS3Object(
    <Aws file link to download>,
    AWS_ACCESS_KEY,
    AWS_SECRET_ACCESS_KEY,
    AWS_REGION,
    AWS_BUCKET_NAME
)

The file will get download in the root directory with the filename in the given aws file link

1.1.0

1 year ago

1.0.0

1 year ago