{"name":"aws-sign","description":"Calculates Authorization header for Amazon AWS REST requests","version":"1.0.1-beta.0","author":{"name":"Egor Egorov","email":"me@egorfine.com"},"license":"MIT","homepage":"https://github.com/egorFiNE/node-aws-sign","scripts":{"test":"mocha test","lint":"eslint index.js"},"repository":{"type":"git","url":"git+https://github.com/egorFiNE/node-aws-sign.git"},"devDependencies":{"eslint":"^7.13.0","mocha":"^8.2.1"},"readme":"# node-aws-sign\n\nSimple module to calculate `Authorization` header for Amazon AWS REST requests.\n\nSimple it is:\n\n```javascript\nconst AwsSign = require('aws-sign');\nconst signer = new AwsSign({\n\taccessKeyId: 'AKIAIOSFODNN7EXAMPLE',\n\tsecretAccessKey: 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'\n});\n\nconst opts = {\n\tmethod: 'PUT',\n\thost: 'johnsmith.s3.amazonaws.com',\n\tpath: '/photos/puppy.jpg',\n\theaders: { ... },\n\t... // Other request options, ignored by AwsSign.\n};\nsigner.sign(opts);\nhttps.request(opts, ...);\n```\n\nThe following keys are mandatory:\n\n* `method`\n* `host`\n* `path`\n\nOthers are optional. A date header (`headers.date`) will be added for you if it is not already set.\n\n## Non-goals\n\nThere is no support for path-style bucket access.\n\n`x-amz-date` substitution is not supported because Node's http module has no problems setting `Date` header.\n\nMultiple `x-amz-` keys are not supported. I.e. the following part of the example won't work:\n\n\tX-Amz-Meta-ReviewedBy: joe@johnsmith.net\n\tX-Amz-Meta-ReviewedBy: jane@johnsmith.net\n\nUse a single header instead:\n\n\tX-Amz-Meta-ReviewedBy: joe@johnsmith.net,jane@johnsmith.net\n\n\n## Testing\n\n\tmocha test/\n\n## Installation\n\n\tnpm install aws-sign\n\n## Author\n\nEgor Egorov, me@egorfine.com.\n\n## License\n\nMIT.\n","readmeFilename":"README.md","gitHead":"96920133c329dfb5503abe2357c8a639fcbdae81","bugs":{"url":"https://github.com/egorFiNE/node-aws-sign/issues"},"_id":"aws-sign@1.0.1-beta.0","_nodeVersion":"15.0.1","_npmVersion":"7.0.3","dist":{"integrity":"sha512-KOyznqfie2B0M/a1JiGpBLt1bdVMxhUJmcNqoVIH2BbmOAmVSLJlbhvUZGrPW86/7+66nZXlgm4TRc5P9TX2VA==","shasum":"4688b51343adf369974014cd8b4cd43205196308","tarball":"http://registry-npm.ywwl.com/aws-sign/download/aws-sign-1.0.1-beta.0.tgz","fileCount":8,"unpackedSize":19281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrTXTCRA9TVsSAnZWagAAFn4P/jhLdyPtGg1GLEVPgEGm\n6uFZctjzX4dBkWA58Tgfz60hmwGJAAAMUFRVfTSwKi0chCXHSEY/07k9hwjf\nBVxBs2wmenes0hJNQwGOnoe7bcUGNzP2VjzsRN+Z5r6LM3nnqSjgTlaAVoXz\nNJ2fn+v81MLscjM8JLOcEiAs+xMrEz/QewPJ/ecGqdrYMP4cjKIoox/2wT7L\nXNQ2eHP/1yxo6nbXHIqIofY8X0KxSShYRgPezh8zD2DIR/wQhuDekubQ6xW4\nMaWImFCGpMbKmszRKT7RklfDxv//4M3/961AFeT9jM1sJlx8a9yPcPEe/qid\nHNrhLVSTNtT7XwjYhK3qRJROA+7hQa1JmvQEqq7aRX9rhGwVdD76Hdm5AAbI\nbbMR/2nBCrRu9CA/bVMdsuoSC2Tx40KWuHt3XsXCPRIlp0jn976YW4bssVZH\nd//E2LkQ2XrSbDRhYz40xG19tmV/gSkQQxnrTn0JLVbZ3X6k2QJAE6gN4d1g\nq4JqVZfRfKKGIlPBQuFClbzp1aBy4mlvksBDZaL836pYLH4WYB/TCKaWShmj\ni8N8XyO6VWkcxWS7+rGV8ViBQxie62+vumidwD4BkOuKDUSEGlTZ3JyvXAaz\ncZnQ8PhZ1jV4QFJ0uT6EewsrL5NRLcqwCtcH7miSQzPKTk414+mnQ1Bd/lNn\nWJF9\r\n=rzSQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJdOoIUJ5n1+4Jq3j6jx8QcXccxq/wqQfJKt/zTB2jYAIgKPOwiTSTxyvOGHBCNI9NBi1DmZk5ZWgJ2moHxfWWTw8="}],"size":6098,"noattachment":false,"key":"/aws-sign/-/aws-sign-1.0.1-beta.0.tgz"},"_npmUser":{"name":"egorfine","email":"me@egorfine.com"},"directories":{},"maintainers":[{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"nylen","email":"jnylen@gmail.com"},{"name":"egorfine","email":"me@egorfine.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-sign_1.0.1-beta.0_1605187026859_0.12462835635389569"},"_hasShrinkwrap":false,"publish_time":1605187026988,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1605187026988,"dist-tags":{"beta":"1.0.1-beta.0","latest":"1.0.1"}}