node.jsfile-iocloud-storage

File Storage Abstraction module for Node.js?


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.


Solution

  • As of 2023 there is Flystorage.

    FlyStorage Has adapters for:
    FlyStorage Logo
    Built by the maintainer of PHP FlySystem
  • Amazon S3
  • Azure Storage Blob
  • Google Cloud Storage
  • In-Memory
  • Local filesystem
  • (S)FTP šŸ”œ Soonā„¢ļø
  • For Node.js, written in TypeScript.