unzip-to-s3
Unzip files directly to Amazon S3 using streams.
Install
npm install unzip-to-s3 --save
Usage
var fs = ;var unzipToS3 = ; // Create the S3 clientvar bucketUpload = unzipToS3; // Create the zip read streamvar zipStream = fs; // Unzip and upload;
Client Options
key
- your AWS keysecret
- your AWS secretbucket
- your S3 bucketpath
- the path to store your objects on S3
unzip-to-s3 uses Knox underneath, so refer to their Client Creation Options for all client options.
Run tests
npm install
npm test