Skip to content

alfredwesterveld/node-stream-upload-file-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Installing

$ npm install -g stream-upload-file-s3 

#Configure

config.json:

{
  "accessKeyId": "",
  "secretAccessKey": "",
  "region": "",
  "bucket": ""
}

#Usage

command:

stream-upload-file-s3 --config <config> --filefilename <file> --bucket #bucket 

Parameters:

  • config: location of config with json from above. Config can also be optional but then a .config should be available in current working directory
  • file: Required paremeter: location of file to put in bucket
  • bucket: To override bucket config.json

#Add alias.

If desired you could create a function(shortcut) for this in your bash_aliases for example:

s3upload () { stream-upload-file-s3 --config /Users/alfredwesterveld/.config/stream-upload-file-s3/config.json --filename "$@"; }

Then you can just use s3upload #filename

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published