From 74bd727930f33c0064cbd983848040180b9a4689 Mon Sep 17 00:00:00 2001 From: Tiago Garcia Date: Fri, 28 Jun 2019 09:43:52 +0200 Subject: [PATCH] Fix issue on sample code - require usage --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f7cb07..8214305 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ s3cmd: [s3-cli](https://github.com/andrewrk/node-s3-cli). ### Create a client ```js -var s3 = require('s3'); +var s3 = require('@auth0/s3'); var client = s3.createClient({ maxAsyncS3: 20, // this is the default @@ -52,7 +52,7 @@ var client = s3.createClient({ ### Create a client from existing AWS.S3 object ```js -var s3 = require('s3'); +var s3 = require('@auth0/s3'); var awsS3Client = new AWS.S3(s3Options); var options = { s3Client: awsS3Client, @@ -618,7 +618,7 @@ Using the AWS SDK, you can send a HEAD request, which will tell you if a file ex See http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#headObject-property ```js -var client = require('s3').createClient({ /* options */ }); +var client = require('@auth0/s3').createClient({ /* options */ }); client.s3.headObject({ Bucket: 's3 bucket name', Key: 'some/remote/file'