All Projects → velocityzen → Dropbox Stream

velocityzen / Dropbox Stream

Licence: mit
Upload & Download streams for Dropbox

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Dropbox Stream

Nodestream
Storage-agnostic streaming library for binary data transfers
Stars: ✭ 70 (+100%)
Mutual labels:  stream, download, upload
speed-cloudflare-cli
📈 Measure the speed and consistency of your internet connection using speed.cloudflare.com
Stars: ✭ 99 (+182.86%)
Mutual labels:  download, upload
ee.Yrewind
Can rewind and save YouTube live stream
Stars: ✭ 133 (+280%)
Mutual labels:  stream, download
PyroGramBot
pluggable Telegram Bot based on Pyrogram
Stars: ✭ 168 (+380%)
Mutual labels:  download, upload
ZDrive
Seamless download/upload contents via Google Drive 📂
Stars: ✭ 25 (-28.57%)
Mutual labels:  download, upload
httputils
Http工具包:OkHttp轻量封装 、功能全面、设计力求优雅与纯粹,Java领域前后端处Http问题的新选择。
Stars: ✭ 21 (-40%)
Mutual labels:  download, upload
angular-material-datatransfer
A HTML5 datatransfer UI for handling upload and download of multiple simultaneous files.
Stars: ✭ 13 (-62.86%)
Mutual labels:  download, upload
Pyinstalive
Python script to download Instagram livestreams and replays.
Stars: ✭ 336 (+860%)
Mutual labels:  stream, download
Godfs
A simple fast, easy use distributed file system written in go.
Stars: ✭ 256 (+631.43%)
Mutual labels:  download, upload
kubefilebrowser
kubernetes container filebrowser and webshell
Stars: ✭ 23 (-34.29%)
Mutual labels:  download, upload
Backdoor
A backdoor that runs on Linux and Windows
Stars: ✭ 36 (+2.86%)
Mutual labels:  download, upload
Transit
Easy file uploading and downloading for Laravel 5.
Stars: ✭ 5 (-85.71%)
Mutual labels:  download, upload
rsync
gokrazy rsync
Stars: ✭ 308 (+780%)
Mutual labels:  download, upload
Flickrsync
A command line tool to synchronise, upload, download, pictures between the local file system and Flickr. Image hash signature of the picture is used to uniquely identify the image.
Stars: ✭ 14 (-60%)
Mutual labels:  download, upload
miniprogram-network
Redefine the Network API of Wechat MiniProgram (小程序网络库)
Stars: ✭ 93 (+165.71%)
Mutual labels:  download, upload
simple http server
simple http server for upload and download
Stars: ✭ 101 (+188.57%)
Mutual labels:  download, upload
Cakephp File Storage
Abstract file storage and upload plugin for CakePHP. Write to local disk, FTP, S3, Dropbox and more through a single interface. It's not just yet another uploader but a complete storage solution.
Stars: ✭ 202 (+477.14%)
Mutual labels:  dropbox, upload
Download
Download and extract files
Stars: ✭ 1,064 (+2940%)
Mutual labels:  stream, download
UniBorg
Pluggable Telegram bot and userbot based on Telethon
Stars: ✭ 196 (+460%)
Mutual labels:  download, upload
Rx Mvp
RxJava2+Retrofit2+RxLifecycle2+OkHttp3 封装RHttp 使用MVP模式构建项目
Stars: ✭ 343 (+880%)
Mutual labels:  download, upload

Dropbox Stream

NPM Version NPM Downloads

Upload & Download streams for Dropbox

Install

npm i dropbox-stream

Usage

Upload

Uploads stream to dropbox using upload session API

Events order:

  1. progress
  2. metadata
const db = require('dropbox-stream');

const TOKEN = 'put your dropbox token here';
const FILETOUPLOAD = '/some/file.txt';

const up = db.createDropboxUploadStream({
    token: TOKEN,
    path: '/test/' + path.basename(FILETOUPLOAD),
    chunkSize: 1000 * 1024,
    autorename: true,
    mode: 'add'
  })
  .on('error', err => console.log(err))
  .on('progress', res => console.log(res))
  .on('metadata', metadata => console.log('Metadata', metadata))

fs.createReadStream(FILETOUPLOAD).pipe(up)
  .on('finish', () => console.log('This fires before metadata!'))

Download

Downloads to stream from dropbox.

Events order:

  1. metadata
  2. progress
const db = require('dropbox-stream');

const TOKEN = 'put your dropbox token here';
const FILETODOWNLOAD = '/some/file.txt';
const FILETODOWNLOADTO = './file.txt';

db.createDropboxDownloadStream({
    token: TOKEN,
    path: FILETODOWNLOAD
  })
  .on('error', err => console.log(err))
  .on('metadata', metadata => console.log('Metadata', metadata))
  .on('progress', res => console.log(res))
  .pipe(fs.createWriteStream(FILETODOWNLOADTO))
  .on('finish', () => console.log('Done!'));

If you want to download a file from shared link use:

db.createDropboxDownloadStream({
  token: TOKEN,
  url: 'sharedlink',
  path: 'optional file path if shared link is for a folder'
})

License MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].