npm install opendal
See our documentations on opendal.apache.org.
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();
- Start with Contributing Guide.
- Submit Issues for bug report or feature requests.
- Asking questions in the Discussions.
- Talk to community at Discord.
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0