vinyl-s3
Use S3 as a source or destination of vinyl files.
Features:
- Source with multi-globbing support,
- Use either streaming or buffering,
- Upload or download files,
- Pass custom options to S3,
- Smart
Content-Type
andContent-Encoding
detection, - Works great with gulp.
Usage
var gulp = s3 = ; // Upload files to S3gulp; // Download files from S3gulp; // Just print a list of filesvar through2 = ;gulp;
When working with large files you may find it useful to use streaming mode instead of buffering mode. You can enable this in the src()
family of functions by setting { buffer: false }
. The default mode is to use buffering as is the same with fs.src
.
src
See getObject for a list of supported options.
// Specify custom attributes via S3 URL.s3 ;
// Specify custom attributes by passing in an AWS options object.s3;
// Use multiple source buckets and patterns.s3 ;
dest
See putObject and upload for a list of supported options. There is limited support for automatically detecting the correct Content-Type
and correct Content-Encoding
. Parallel uploads are supported by passing { queueSize: n }
as a second parameter.
// Specify custom attributes via S3 URL.fs ;
// Specify custom attributes by passing in an AWS options object.fs ;
// Specify custom attributes per file.fs ;