{"name":"aws-sign","description":"Calculates Authorization header for Amazon AWS REST requests","version":"0.1.2","author":{"name":"Egor Egorov","email":"me@egorfine.com"},"homepage":"https://github.com/egorFiNE/node-aws-sign","scripts":{"test":"nodeunit"},"repository":{"type":"git","url":"git+https://github.com/egorFiNE/node-aws-sign.git"},"devDependencies":{"nodeunit":">= 0.6.0"},"gitHead":"b7133617a509513873d70a2a6f6ff44f2438e61e","bugs":{"url":"https://github.com/egorFiNE/node-aws-sign/issues"},"_id":"aws-sign@0.1.2","_shasum":"06c31c9d70dabb47973607c4bffeb0a7be661168","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"egorfine","email":"me@egorfine.com"},"maintainers":[{"name":"egorfine","email":"me@egorfine.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"nylen","email":"jnylen@gmail.com"}],"dist":{"shasum":"06c31c9d70dabb47973607c4bffeb0a7be661168","tarball":"http://registry-npm.ywwl.com/aws-sign/download/aws-sign-0.1.2.tgz","integrity":"sha512-Wn8N9QL3EwkPi/j1nJPzrGFAYJlwrXiqYBSt1b7W0F2hqBmLLXG17rtZUlxNoDvWFGVhSQ2fOA+pTRpmRjeYZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNjRquBgsSmTgyRLqM2vU5i1BZGLkfSAWTJ74ZgCjocAiEAubwuT8OFd5pkWQHlH+8Z2vG7cul6+PQh5jIZju01TrQ="}],"size":4208,"noattachment":false,"key":"/aws-sign/-/aws-sign-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/aws-sign-0.1.2.tgz_1463648182977_0.49616564344614744"},"directories":{},"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":1463648185098,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1463648185098,"dist-tags":{"beta":"1.0.1-beta.0","latest":"1.0.1"}}