A stackable-fetcher middleware for signing requests with AWS Signature v4.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
index.js
package.json

README.md

stackable-fetcher-aws-signer-v4

A stackable-fetcher middleware for signing requests with AWS Signature v4.

Install

npm install --save stackable-fetcher-aws-signer-v4

Usage

// Create a new Fetcher instance
var fetcher = new Fetcher();

// Build your middleware stack
fetcher.use(
  require('stackable-fetcher-aws-signer-v4'),
  {
    accessKeyId: '...',
    secretAccessKey: '...'
  }
)

// Send a signed request
fetcher
  .get('https://apigateway.us-east-1.amazonaws.com/restapis')
  .then(function (response) {
    // ... do your task
  });