@20minutes/s3-unzip-plus
v1.1.3
Published
Utility for unzipping a compressed (application/zip) file from a S3 bucket's root directory back to the same bucket.
Downloads
61
Readme
S3 Unzip Plus
Forked version to:
- remove old AWS SDK v2
- add AWS SDK v3
- convert to async/await
For the official readme, check the official project.
Install
yarn add @20minutes/s3-unzip-plus
Library Usage
import s3UnzipPlus from '@20minutes/s3-unzip-plus'
await s3UnzipPlus({
bucket: 'test-bucket-in-s3',
file: 'Companies.zip',
targetBucket: 'test-output-bucket',
targetFolder: 'test-folder',
copyMetadata: true,
deleteOnSuccess: true,
verbose: false
});