Reputation: 14640
Working on applications in PHP, I like to use a file storage abstraction layer (for instance Flysystem). This makes it trivial to switch between locations where files should be persisted to (cloud storage, local drive, ZIP, whatever).
Currently I am getting started in Node.js so I was wondering if a similar module exists for node?
Searching the NPM site gave me a ton of hits related to the filesystem but nothing in regards to this level of abstraction.
Upvotes: 20
Views: 9552
Reputation: 14640
As of 2023 there is Flystorage.
FlyStorage | Has adapters for: |
---|---|
![]() Built by the maintainer of PHP FlySystem |
For Node.js, written in TypeScript.
Upvotes: 5
Reputation: 77
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.).
However, it has not seen any activity since 2018.
Upvotes: 5
Reputation: 3673
There used to be Flydrive, but as of 2022 it is no longer maintained.
It has support for:
Upvotes: 6
Reputation: 13814
pkgcloud integrates multiple services (compute, storage, database. etc) and supports multiple cloud providers. The storage service's API is simple to use and supports streams, making it memory efficient as well.
Unfortunately, the project is longer maintained.
Upvotes: 7