@anymux/dropbox
v0.1.0
Published
Dropbox file system adapter for AnyMux
Maintainers
Readme
@anymux/dropbox
Dropbox file system provider for AnyMux.
Installation
pnpm add @anymux/dropboxUsage
import { DropboxProvider } from "@anymux/dropbox";
const provider = new DropboxProvider({
accessToken: "...",
});
await provider.initialize();
const fs = provider.getCapability("file-system");
const files = await fs.readdir("/");
const content = await fs.readFile("/notes.txt", "utf-8");
await fs.writeFile("/new-file.txt", "Hello from AnyMux!");API Overview
DropboxProvider
Implements IProvider with file-system capability, mapping IFileSystem operations to the Dropbox API v2.
- Read, write, copy, move, and delete files
- Create and list folders
- File metadata via
stat() - Large file upload support
Configuration
accessToken— OAuth 2.0 access token (use@anymux/middlewarefor the OAuth flow)rootPath— Root path within Dropbox (default:""for root)
License
MIT
