s3stream
Thin wrapper over existing libraries to standardize the interface for streaming uploads and downloads from Amazon S3. Supports streaming to/from variables or URLs without using the local filesystem.
Example usage
var AWS = ;var S3Stream = ; var s3 = ;var s3stream = s3; var s3params = Bucket: "BUCKET" Key: "KEY" ; // upload a string to s3s3stream;
Upload Methods
s3stream
Streams the data from a URL to an S3 object without using local storage. Returns a bluebird promise.
s3stream
Streams a string to an S3 object. Returns a bluebird promise.
s3stream
Streams a local file to an S3 object. Returns a bluebird promise.
Download Methods
s3stream
Streams an S3 object to a string variable. Returns a bluebird promise that resolves with the string.
s3stream
Streams an S3 object to a local file. Returns a bluebird promise that resolves with the given filename.
Lower level methods
s3stream
Returns a Writable that you can pipe streams to.
s3stream
Returns a Readable that you can pipe to other streams.