aws-request-signer

1.0.2 • Public • Published

Quick start

Install

yarn add aws-request-signer

Add to the project

const Signer = require('aws-request-signer')

Sign the request

const request = new Signer({
        region,
        accessKeyId,
        secretAccessKey
    }, {
        url,
        method,
        dataType: 'json',
        contentType: 'application/x-amz-json-1.0',
        body
    })

Send the request

await fetch('https://' + url.host + url.pathname, request)

Readme

Keywords

none

Package Sidebar

Install

npm i aws-request-signer

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.02 kB

Total Files

3

Last publish

Collaborators

  • oskarkaminski