@ryanburnette/s3-sync
v3.0.0
Published
Sync a directory with AWS S3.
Downloads
7
Readme
s3-sync
Sync a directory with AWS S3.
Usage
require('dotenv').config({});
var AWS = require('aws-sdk');
var sync = require('@ryanburnette/s3-sync');
sync({
cwd: 'assets.dist/',
path: './',
s3: new AWS.S3(),
remotePathPrefix: '2.0.0',
uploadOpts: {
Bucket: process.env.BUCKET
}
}).then(function(results) {
console.log('RESULTS', results);
});