{"name":"aws-sign","description":"Calculates Authorization header for Amazon AWS REST requests","version":"0.2.1","author":{"name":"Egor Egorov","email":"me@egorfine.com"},"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":"^5.2.0","mocha":"^5.2.0"},"gitHead":"2ceb53c974cc4e7fb26fd4458f461f65f659cb67","bugs":{"url":"https://github.com/egorFiNE/node-aws-sign/issues"},"_id":"aws-sign@0.2.1","_npmVersion":"6.2.0","_nodeVersion":"10.7.0","_npmUser":{"name":"egorfine","email":"me@egorfine.com"},"dist":{"integrity":"sha512-cQFl6jK/Lq416OqpT+lb1RIay1wShuQjHF3/kAJbyMvruV8vSpDahaGNkbeupdGRgXR8Ii0O/ZIbTQPdp+l3pA==","shasum":"b961b22f0baa4f15ec241140f3776d6c142856d0","tarball":"http://registry-npm.ywwl.com/aws-sign/download/aws-sign-0.2.1.tgz","fileCount":6,"unpackedSize":18926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYwK+CRA9TVsSAnZWagAAiiwP/RcCuNIPNd+FvwkGzqlB\nT32kvpJKxnYj067Uk4OtWAvPKw7UCINLQWfOfE+rLUEEGli8htAXPedmsyEf\ne8XRYzvoCFmgh4qiK7Tr1068rOzmrl6wfouZXQI9/qoWXyNJwZvjQivDOu8r\n0pfBsTh80dTuUIxkrzbohshrF392JQ7LNLb3cfwYD6pKpR+h9MLEOSr/trNZ\nfGXEXTgOtMFseLPW6Fu1srFNAO+hhkIUr+ZtDnqAf6jomNSejGX0iAyaaX56\nld92q7IRDlyIJZTP7MKx2eMlyWfMHtD6M3GkMwtK4hAppiSVZMahHnUHbDhG\nDOHItHnEZOHqh7nDq4BYAhRASE2uICWtuEWDqd1vNjbEplI+mA7S6vOG5UBF\n3AyRBAPRwCf7Ak0wilXBcI30QE24/m18BT2NhAWqhJwcl6GQ5FLBPGCu7kdo\nGdIMLONFdRNu+LOqIFvfcyxsaLj2cgfQLVwLb44meP8+VrBvzprF10ZqIu/v\nFR3gEUiDQ58gcRleuCqUDlmAnFhEM5kANd8eR/iNANe0t7z2iudWLxizuxqT\nhLyeo62H4RssJnorOwMGRyoANoG3bdFuMq86QxK/Z2iCwsse7zSOzrDTAUeo\nhwIDQLMGSu4h0mwq7E+2m6kb+CvU1nJnMkMiA9Mw6owozBhCrsKfRKbn12kO\n3XTr\r\n=JEH1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBnx6IBTW0onxYxpTHr2EXkCvFrVgwte0iKaVV1mgfrPAiEA5AywbM4ysY8wbYJ1+6JJVXub6PdPC1zc+7aT/tfNDQE="}],"size":5811,"noattachment":false,"key":"/aws-sign/-/aws-sign-0.2.1.tgz"},"maintainers":[{"name":"egorfine","email":"me@egorfine.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"nylen","email":"jnylen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-sign_0.2.1_1533215413515_0.6029300394017756"},"_hasShrinkwrap":false,"deprecated":"Incorrectly published ES6 version into the 0.x branch","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","publish_time":1533215413692,"_cnpm_publish_time":1533215413692,"dist-tags":{"beta":"1.0.1-beta.0","latest":"1.0.1"}}