1.1.3 • Published 7 years ago

hyper-aws4 v1.1.3

Weekly downloads
17
License
MIT
Repository
github
Last release
7 years ago

hyper-aws4

NPM version build status Test coverage

AWS Signature Version 4 Signing Library for Hyper

Installation

$ npm install hyper-aws4

Example

var aws4 = require('hyper-aws4')
var fetch = require('node-fetch')

var signOption = {
  url: 'https://us-west-1.hyper.sh/version',
  method: 'GET',
  credential: {
    accessKey: '6DPLADBPWYXDUVXLX34EJXBL',
    secretKey: '2ldD1Yz0nzATl9vvagBwYTjglXBjVOWU8gV8aMm5'
  }
}

var headers = aws4.sign(signOption)

fetch(signOption.url, {method: signOption.method, headers: headers}).then(function(res) {
    return res.json();
}).then(function(json) {
    console.log(json);
});

License

MIT

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago