Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gn-s3-uploader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gn-s3-uploader

Simple module for uploading files in a given dir to AWS S3

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gn-s3-uploader

Simple script for uploading files in a dir to the AWS S3 storage. Useful when working with data migration.

Installation

$ npm install gn-s3-uploader

Usage

The script will append the generated keys to a success-<timestamp>.txt file as the uploads are completed. In case of error, the filename is appended to an error-<timestamp>.txt. Both files are created in the same directory in which the script was called.

  Usage: index [options]

  Options:

    -h, --help                       output usage information
    -V, --version                    output the version number
    -d, --dir <path>                 full path of the folder with the files to upload
    -b, --bucket <string>            the S3 bucket
    -k, --accessKeyId <string>       the S3 accessKeyId
    -s, --secretAccessKey <string>   the S3 secretAccessKey
    -acl, --acl <value>              custom acl, defaults to public-read
    -r, --region <value>             custom region, defaults to sa-east-1
    -keyPrefix, --keyPrefix <value>  an optional prefix to concat with  the generated key, ex. cdn/images/

TO DO

Unit test the gn-uploader class

Changelog

CHANGELOG

License

MIT

Keywords

FAQs

Package last updated on 16 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc