From fa76b220f1cf55aee47415562fc0243cd884b77b Mon Sep 17 00:00:00 2001 From: Andrea Longo Date: Mon, 18 Dec 2023 11:12:15 -0700 Subject: [PATCH] npm run format --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3b30014d..bb5324f0 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The MinIO JavaScript Client SDK provides high level APIs to access any Amazon S3 compatible object storage server. -This guide will show you how to install the client SDK and execute an example JavaScript program. +This guide will show you how to install the client SDK and execute an example JavaScript program. For a complete list of APIs and examples, please take a look at the [JavaScript Client API Reference](https://min.io/docs/minio/linux/developers/javascript/API.html) documentation. This document presumes you have a working [Node.js](http://nodejs.org/) development environment, LTS versions v16, v18 or v20. @@ -92,8 +92,7 @@ const destinationObject = 'my-test-file.txt' const exists = await minioClient.bucketExists(bucket) if (exists) { console.log('Bucket ' + bucket + ' exists.') -} -else { +} else { await minioClient.makeBucket(bucket, 'us-east-1') console.log('Bucket ' + bucket + ' created in "us-east-1".') } @@ -109,9 +108,7 @@ var metaData = { // If an object with the same name exists, // it is updated with new data await minioClient.fPutObject(bucket, destinationObject, sourceFile, metaData) -console.log('File ' + sourceFile + - ' uploaded as object ' + destinationObject + - ' in bucket ' + bucket) +console.log('File ' + sourceFile + ' uploaded as object ' + destinationObject + ' in bucket ' + bucket) ``` #### Run the File Uploader