Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Testlio/upload-to-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recursive upload files to s3

Recursively walks through target folder and streams all found files to specified s3 bucket

Install

$ npm i -g upload-to-s3

Usage

Cli

$ upload-to-s3 --help

Example:

Upload everything from ./build directory to wombo-combo-bucket with prepended 0.0.3 path.

$ upload-to-s3 -b wombo-combo-bucket -p 0.0.3 ./build/

Node

const Uploader = require('upload-to-s3');
const uploader = new Uploader('bucket name', 'target dir', {
    prefix: 'prefix'
});

uploader
    .on('uploading', log('uploading'))
    .on('done', log('done'))
    .on('error', log('error'))
    .start();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published