0.0.1 • Published 8 months 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/dropbox
Usage
!NOTE The examples are written in ESM.
For CJS, you canrequire
the package.
For a browser environment without support fortype=module
inscript
tags, you can add ascript
tag to your HTML pointing to thebrowser.min.js
and use the globalZenFS_Dropbox
object.
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
8 months ago