sign-s3
v0.1.7
Published
```bash npm install sign-s3 ```
Downloads
20
Readme
Installation
npm install sign-s3
Usage as a module
Also find the following in the sample provided.
var signS3 = require('sign-s3')({
S3_BUCKET : '<your bucker name>',
S3_ACCESS_KEY : '<your AWS access key for s3>',
S3_ACCESS_SECRET : '<your AWS secret>',
S3_REGION : '<your aws region defaults to us-west-1>',
HOST_NAME :'<custom url like cloud front. will be derived from bucket and region if not provided>'
})
Usage as a Express router
Also find the following in the sample provided
const express = require('express');
const app = express();
//Initialzed by setting the environment variables.
const signS3Router = require('sign-s3/router');
//In your app or router
app.route('/sign-s3-route', signS3Router);