/bucket-zip

Download a directory from an Amazon S3 bucket as zip file.

Primary LanguageJavaScript

Bucket Zip

Download a directory from an Amazon S3 bucket as zip file.

Install

NPM

Usage

var BucketZip = require('bucket-files');
var bucketZip = BucketZip.connect({
  key: 's3-key',
  secret: 's3-secret',
  bucket: 'name-of-the-s3-bucket'
});

// Stream a zip file of a directory
// "res" is a node response object

bucketZip('some_dirctory_in_a_bucket').pipe(res);