See node-plan.
See also node-plan-s3-download.
input
tempPath
- the local file to upload to s3
output
none
options
s3Key
s3Secret
s3Bucket
url
- string file path destination. These interpolations are available:{ext}
- the extension oftempPath
from the input. includes the '.'.{uuid}
- a newly generated UUID string. looks something like this: 064c06bf-84e8-4a54-b0d2-d7acdefe20d2{brace}
- a literal '{'
secure
- boolean, whether to use SSL. Note that you cannot use SSL if your bucket contains a period. Defaults tofalse
.
exports
bucket
- copied directly from optionsurl
- rendered url after applying interpolations
Testing
S3_KEY=<valid_s3_key> S3_SECRET=<valid_s3_secret> S3_BUCKET=<valid_s3_bucket> npm test