plan-s3-upload

0.1.6 • Public • Published

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 of tempPath 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 to false.

exports

  • bucket - copied directly from options
  • url - rendered url after applying interpolations

Testing

S3_KEY=<valid_s3_key> S3_SECRET=<valid_s3_secret> S3_BUCKET=<valid_s3_bucket> npm test

Readme

Keywords

none

Package Sidebar

Install

npm i plan-s3-upload

Weekly Downloads

1

Version

0.1.6

License

BSD

Last publish

Collaborators

  • superjoe