Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

mandate

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mandate

Upload a directory to an S3 bucket

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 05 Jun 2013

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