Simple Node.js module to calculate the AWS Authorization header for REST requests to Amazon S3. Version 1.0.1 is the latest stable release. This package has not been updated since 2013 and is considered legacy. It only supports AWS Signature Version 2, not the newer Signature Version 4 used by most AWS services today. It does not support path-style bucket access, multiple x-amz- headers, or x-amz-date substitution. For new projects, use the official AWS SDK or a library like aws4 that supports Signature V4.
npm install aws-signNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a signer with AWS credentials and signing a request to S3.
Use the official AWS SDK or a library like aws4 that supports Signature V4.
Combine values into a single header with comma-separated values.
Use virtual-hosted style (bucket.s3.amazonaws.com).
Ensure opts object has method, host, and path set before calling signer.sign(opts).
Instantiate with an object containing accessKeyId and secretAccessKey: new AwsSign({ accessKeyId: '...', secretAccessKey: '...' })