mandate

Upload a directory to an S3 bucket

npm install mandate
11 downloads in the last week
28 downloads in the last month

Mandate

Upload a directory to an S3 bucket

Command Line

Installation

npm install mandate -g

Usage

mandate <source-dir> -b <bucket-name> -k <key> -s <secret> -r <region>

Configuration

To save you typing in the command line options every time, stop accepts toml configuration files in the location .mandate.toml. An example configuration file might look like:

.mandate.toml

[aws]
bucket="example.com"
key="<AWS-KEY>"
secret="<AWS-SECRET>"
region="<AWS-REGION>"
[options]
filter=["!/node_modules", "!/.git"]

API

mandate(__dirname, {
  bucket: '<bucket>',
  key: '<key>',
  secret: '<secret>',
  region: '<region>'
}, {filter: function (path) { return true }}, function (err) {
  //done
})

License

MIT

npm loves you