{"name":"aws-sign","description":"Calculates Authorization header for Amazon AWS REST requests","version":"0.1.0","author":{"name":"Egor Egorov","email":"me@egorfine.com"},"homepage":"https://github.com/egorFiNE/node-aws-sign","repository":{"type":"git","url":"https://github.com/egorFiNE/node-aws-sign.git"},"devDependencies":{"nodeunit":">= 0.6.0"},"_id":"aws-sign@0.1.0","dist":{"shasum":"19a301e459262c423e9582d9cefc3874a43a9878","tarball":"http://registry-npm.ywwl.com/aws-sign/download/aws-sign-0.1.0.tgz","integrity":"sha512-FJTJkuztW40wW6jOf+o8vz/c7qgI+/SW+toDkgvRFF+K271xusCiWSt6tSwAkry7nJTXW7ORGYEMO2MXc6wvVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWDJh7+XC3RbHLawbNQOFheGqyzIPIZZSH38poeddhTAiEAnrCB8HUni8xmYeDHdP/qNLChX9gXnvsPaau+nFUR6Cg="}],"size":3515,"noattachment":false,"key":"/aws-sign/-/aws-sign-0.1.0.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"egorfine","email":"me@egorfine.com"},"maintainers":[{"name":"egorfine","email":"me@egorfine.com"}],"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":1349703305010,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1349703305010,"dist-tags":{"beta":"1.0.1-beta.0","latest":"1.0.1"}}