@davvo/drbx
Dropbox upload and download streams
Last updated 4 years ago by davvo .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @davvo/drbx 
SYNC missed versions from official npm registry.

drbx

Dropbox upload and download streams

##Install

$ npm install @davvo/drbx --save

##Examples

const fs = require('fs')

const drbx = require('@davvo/drbx')({
  token: '<dropbox-access-token>'
})

// Download
let remoteReadStream = drbx.file('/giraffe.jpg').createReadStream()
let localWriteStream = fs.createWriteStream('/photos/zoo/giraffe.jpg')
remoteReadStream.pipe(localWriteStream)

// Upload
let localReadStream = fs.createReadStream('/photos/zoo/zebra.jpg')
let remoteWriteStream = drbx.file('/zebra.jpg').createWriteStream()
localReadStream.pipe(remoteWriteStream)

Current Tags

  • 2.1.0                                ...           latest (4 years ago)

5 Versions

  • 2.1.0                                ...           4 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 7
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |