File Storage Abstraction module for Node.js?

cloud-storage, file-io, node.js

Solution

As of 2023 there is Flystorage.

FlyStorage Has adapters for:

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.

Problem

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.

Original source