Skip to content

Commit

Permalink
fix(readme): update to npm readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansonshine committed Jun 2, 2023
1 parent 91d0e92 commit 36caa00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ const client = addProxyToClient(new S3Client({}), { throwOnNoProxy: false });

```ts
// process.env.HTTPS_PROXY = 'https://127.0.0.1'
import { readFileSync } from 'fs';
import { S3Client } from '@aws-sdk/client-s3';
import { addProxyToClient } from 'aws-sdk-v3-proxy';

const client = addProxyToClient(new S3Client({}), {
agentOptions: {
ca: [fs.readFileSync('custom-proxy-cert.pem').toString()],
ca: [readFileSync('custom-proxy-cert.pem').toString()],
},
});

Expand Down

0 comments on commit 36caa00

Please sign in to comment.