17

在 PHP 中处理应用程序时,我喜欢使用文件存储抽象层(例如Flysystem)。这使得在文件应该保存到的位置(云存储、本地驱动器、ZIP 等)之间切换变得微不足道

目前我开始使用 Node.js,所以我想知道 node 是否存在类似的模块?

搜索 NPM 站点给了我大量与文件系统相关的点击,但与此抽象级别无关。

4

3 回答 3

9

pkgcloud集成了多种服务(计算、存储、数据库等)并支持多个云提供商。存储服务的 API 易于使用并支持流,因此内存效率也很高。

不幸的是,该项目的维护时间更长。

于 2015-06-13T13:42:19.017 回答
6

There is filefog, which is intended to support Google Drive, Dropbox, SkyDrive and Box, as well as the local filesystem. Like passport it uses ‘strategies’ published as separate modules for each provider (filefog-dropbox, filefog-onedrive, etc.).

于 2014-06-23T22:04:55.150 回答
6

飞驱

https://github.com/Slynova-Org/node-flydrive

  • 当地的
  • 亚马逊 S3
  • 数字海洋空间
  • FTP
于 2018-07-18T07:05:23.683 回答