Dropbox Stream
Upload & Download streams for Dropbox
Install
npm i dropbox-stream
Usage
Upload
Uploads stream to dropbox using upload session API
Events order:
progress
metadata
const db = ; const TOKEN = 'put your dropbox token here';const FILETOUPLOAD = '/some/file.txt'; const up = db fs
Download
Downloads to stream from dropbox.
Events order:
metadata
progress
const db = ; const TOKEN = 'put your dropbox token here';const FILETODOWNLOAD = '/some/file.txt';const FILETODOWNLOADTO = './file.txt'; db ;
If you want to download a file from shared link use:
db
License MIT