0.0.1 • Published 1 year ago
@zenfs/dropbox v0.0.1
ZenFS Dropbox
!WARNING This package was implemented very recently and may not be stable.
If you find a bug, please report it. Thanks!
This package adds the Dropbox backend for ZenFS.
For more information, see the API documentation.
!IMPORTANT Please read the ZenFS core documentation!
Installing
npm install @zenfs/dropboxUsage
!NOTE The examples are written in ESM.
For CJS, you canrequirethe package.
For a browser environment without support fortype=moduleinscripttags, you can add ascripttag to your HTML pointing to thebrowser.min.jsand use the globalZenFS_Dropboxobject.
import { configure, fs } from '@zenfs/core';
import { Dropbox } from '@zenfs/dropbox';
import { Dropbox as DropboxClient } from 'dropbox';
const client = new DropboxClient({
accessToken: '...',
// ...
});
await configure({
mounts: {
'/mnt/dropbox': {
backend: Dropbox,
client,
},
},
});0.0.1
1 year ago