0.47.11 • Published 5 months ago

opendal v0.47.11

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Apache OpenDAL™ Node.js Binding

npm.io npm Website

npm.io

Installation

npm install opendal

Docs

See our documentation on opendal.apache.org.

To build the docs locally, please run the following commands:

# Only need to run once unless you want to update the docs theme
pnpm run build:theme

# Build the docs
pnpm run docs

Tests

Services behavior tests read necessary configs from env vars or the .env file.

You can copy .env.example to $(pwd)/.env and change the values on need, or directly set env vars with export KEY=VALUE.

Take fs for example, we need to enable bench on fs on /tmp:

OPENDAL_TEST=fs
OPENDAL_FS_ROOT=/tmp

You can run service behavior tests of enabled with the following command:

pnpm build && pnpm test

Usage

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}`);
}

main();

Contributing

License and Trademarks

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.

0.47.11

5 months ago

0.47.7

8 months ago

0.47.8

7 months ago

0.47.6

9 months ago

0.47.4

11 months ago

0.47.5

10 months ago

0.47.3

11 months ago

0.47.1

12 months ago

0.46.2

1 year ago

0.47.2

11 months ago

0.47.0

1 year ago

0.46.1

1 year ago

0.45.2

1 year ago

0.45.1

1 year ago

0.45.0

1 year ago

0.44.2

1 year ago

0.44.1

2 years ago

0.44.0

2 years ago

0.42.0

2 years ago

0.41.0

2 years ago

0.40.0

2 years ago

0.39.0

2 years ago

0.38.1

2 years ago

0.38.0

2 years ago

0.37.0

2 years ago

0.36.1

2 years ago

0.36.0

2 years ago

0.35.0

2 years ago

0.32.0

2 years ago

0.31.1

2 years ago

0.33.3

2 years ago

0.33.2

2 years ago

0.34.0

2 years ago

0.33.1

2 years ago

0.30.5

2 years ago

0.30.4

2 years ago

0.30.3

2 years ago

0.30.2

2 years ago

0.0.1

2 years ago