opendal
TypeScript icon, indicating that this package has built-in type declarations

0.45.1 • Public • Published

Apache OpenDAL™ Node.js Binding

npm Website

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

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.

Dependents (0)

Package Sidebar

Install

npm i opendal

Weekly Downloads

9

Version

0.45.1

License

Apache-2.0

Unpacked Size

50.3 kB

Total Files

8

Last publish

Collaborators

  • theasf
  • vp-brand-asf
  • xuanwo
  • suyanhanx