Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
下载dropbox共享文件夹下的文件到本地,无需使用app key
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
.npmignore
LICENSE
README.md
index.js
package.json
test.js

README.md

download-dropbox-share

下载dropbox共享文件夹下的所有文件到本地,无需使用app key。该项目是Purelog的一个子项目。

安装

npm install download-dropbox-share

使用

var _dds = require('download-dropbox-share');
var url = 'https://www.dropbox.com/sh/0ue01tzygjqqb37/lXbAbJqheX';
//选项暂时无效
var options = {
  depth: -1,
  filter: [/\.(md|css)$/i]
};

//要保存的路径
var saveTo = _path.join(__dirname, 'dropbox');

//下载所有文件
_dds.downloadAll(url, saveTo, options, function(){
  console.log('完成');
  done();
});

download-dropbox-share会获取该共享链接下的所有文件并下载。

依赖项

  • fs-extra
  • cheerio
  • strformat
  • fetch
  • async

Author

Conis

Blog: http://iove.net

E-mail: conis.yi@gmail.com

Purelog

Something went wrong with that request. Please try again.