This is an automated email from the ASF dual-hosted git repository.
suyanhanx pushed a commit to branch fix-format
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/fix-format by this push:
new 6b851e78 update for *.md
6b851e78 is described below
commit 6b851e785a113b64cb5d9790e1a8fe36d297ae37
Author: suyanhanx <[email protected]>
AuthorDate: Fri Apr 14 16:52:46 2023 +0800
update for *.md
Signed-off-by: suyanhanx <[email protected]>
---
.editorconfig | 1 +
bindings/nodejs/README.md | 16 ++++++++--------
bindings/nodejs/benchmark/README.md | 10 +++++-----
3 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/.editorconfig b/.editorconfig
index 1b4c6675..c065c162 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -33,6 +33,7 @@ indent_size = 4
# double whitespace at end of line
# denotes a line break in Markdown
trim_trailing_whitespace = false
+indent_size = 0
[*.yml]
indent_size = 2
diff --git a/bindings/nodejs/README.md b/bindings/nodejs/README.md
index 07818d64..0410bf63 100644
--- a/bindings/nodejs/README.md
+++ b/bindings/nodejs/README.md
@@ -18,12 +18,12 @@ See our documentations on
[opendal.apache.org](https://opendal.apache.org/docs/n
import { Operator } from "opendal";
async function main() {
- const op = new Operator("fs", { root: "/tmp" });
- await op.write("test", "Hello, World!");
- const bs = await op.read("test");
- console.log(new TextDecoder().decode(bs));
- const meta = await op.stat("test");
- console.log(`contentLength: ${meta.contentLength}`);
+const op = new Operator("fs", { root: "/tmp" });
+await op.write("test", "Hello, World!");
+const bs = await op.read("test");
+console.log(new TextDecoder().decode(bs));
+const meta = await op.stat("test");
+console.log(`contentLength: ${meta.contentLength}`);
}
main();
@@ -31,8 +31,8 @@ main();
## Contributing
-- Install latest `Rust`
-- Install `Node.js@10+` which fully supported `Node-API`
+- Install latest `Rust`
+- Install `Node.js@10+` which fully supported `Node-API`
We are using `corepack` to specific package manager:
diff --git a/bindings/nodejs/benchmark/README.md
b/bindings/nodejs/benchmark/README.md
index fcca80c2..9be0a942 100644
--- a/bindings/nodejs/benchmark/README.md
+++ b/bindings/nodejs/benchmark/README.md
@@ -4,11 +4,11 @@ This benchmark is test against the opendal and aws js sdk.
To run the benchmark, please make sure the following env have been set
correctly.
-- AWS_S3_ENDPOINT: the endpoint of the s3 service
-- AWS_S3_REGION: the region of the s3 service
-- AWS_ACCESS_KEY_ID: the access key of the s3 service
-- AWS_SECRET_ACCESS_KEY: the secret key of the s3 service
-- AWS_BUCKET: the bucket name of the s3 service
+- AWS_S3_ENDPOINT: the endpoint of the s3 service
+- AWS_S3_REGION: the region of the s3 service
+- AWS_ACCESS_KEY_ID: the access key of the s3 service
+- AWS_SECRET_ACCESS_KEY: the secret key of the s3 service
+- AWS_BUCKET: the bucket name of the s3 service
To run the benchmark: