Writable stream which takes paths and uploads them to S3
Writable stream which takes paths and uploads them to S3.
var s3ify = require's3ify';var s = s3ifykey: processenvAWS_ACCESS_KEYsecret: processenvAWS_SECRET_KEYregion: processenvAWS_REGIONbucket: processenvAWS_BUCKET;swrite'test/img/hasselblad.jpg';son'skip'console.log'already uploaded' path;;son'upload'console.log'uploaded' path;;son'error'console.error'error' err;;
Return a writable stream which uploads paths written to it.
opts must be passed in:
opts.key- AWS access key ID.
opts.secret- AWS secret access key.
opts.region- AWS geographic region.
opts.bucket- Existing S3 bucket for uploads.
For every path already existing in the bucket this event fires.
For every path sucessfully uploaded to the bucket this event fires.
For each error when checking existence of or uploading a path this event fires.