Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanburnette/s3-sync
Sync a directory with AWS S3.
https://github.com/ryanburnette/s3-sync
Last synced: 22 days ago
JSON representation
Sync a directory with AWS S3.
- Host: GitHub
- URL: https://github.com/ryanburnette/s3-sync
- Owner: ryanburnette
- License: isc
- Created: 2019-11-21T18:24:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-24T17:16:43.000Z (about 5 years ago)
- Last Synced: 2024-12-20T13:16:14.598Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 228 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [s3-sync](https://github.com/ryanburnette/s3-sync)
[![repo](https://img.shields.io/badge/repository-Github-black.svg?style=flat-square)](https://github.com/ryanburnette/s3-sync)
[![npm](https://img.shields.io/badge/package-NPM-green.svg?style=flat-square)](https://www.npmjs.com/package/@ryanburnette/s3-sync)Sync a directory with AWS S3.
## Usage
```js
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);
});
```