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

0.37.0 • Public • Published

OpenDAL Node.js Binding

Installation

npm install opendal

Docs

See our documentations on opendal.apache.org.

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

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

Install

npm i opendal

DownloadsWeekly Downloads

154

Version

0.37.0

License

Apache-2.0

Unpacked Size

35.2 kB

Total Files

7

Last publish

Collaborators

  • xuanwo