Thin wrapper around the native fetch API that automatically signs HTTP requests with AWS Signature V4 using credentials from environment variables or explicit options. Version 3.0.0 is ESM-only, ships TypeScript definitions, and supports custom wrappers via the exported `wrapper` function. It is lightweight with no external runtime dependencies, making it ideal for serverless environments and Node.js 18+. Unlike alternatives, it does not bundle its own fetch implementation, relying on the platform's native fetch.
npm install fetch-aws4No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates making a signed GET request with explicit AWS credentials.
Update to ES modules: use import statements or set type:module in package.json.
Use the wrapper function to apply signing only where needed.
Upgrade to v3 and migrate to ESM imports.
Always provide a complete set: accessKeyId, secretAccessKey, and optionally sessionToken.
Upgrade to Node.js 18+ or use a polyfill like node-fetch (but wrap with the wrapper function).
Run 'npm install fetch-aws4' and ensure your project uses ES modules (type:module in package.json or .mjs extension).
Change to 'import fetch from \'fetch-aws4\'' and use ES module context.
Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables, or pass credentials object in options.
Pass a valid URL string or URL object to fetch.
No dependency data recorded yet.