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

aws-folder-upload

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-folder-upload

upload folder to aws s3

  • 1.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-68.75%
Maintainers
1
Weekly downloads
 
Created
Source

aws-folder-upload

aws-folder-upload

Allow upload all content of folder include subfolder.

Import into project

npm i aws-folder-upload --save

Init config

var awsFolderUpload = require('aws-folder-upload');

awsFolderUpload.config({
  accessKeyId: 'accessKeyId', //require string
  secretAccessKey: 'secretAccessKey', //require string
  region: 'region', //optional string aws region
  bucketName:'bucket-name', //require string BucketName only allow lowercase [a-z0-9] and - charactors
  folder:'folder', //require string relative path
  debug:true, //optional boolean
  exclude : ['.scss','.coffee','.zip','.ts'], //optional array
  acl : 'public-read', //optional string. Default is 'public-read'. AWS value "private"|"public-read"|"public-read-write"|"authenticated-read"|"aws-exec-read"|"bucket-owner-read"|"bucket-owner-full-control"
});

Upload

awsFolderUpload.upload((err, result)=>{
  if(err)
    console.log('err', err);
  else
    console.log('result', result);
});

Keywords

FAQs

Package last updated on 22 Dec 2018

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