UNPKG

@b2y/document-module

Version:

A flexible multi-provider storage adapter for file operations across S3, Azure Blob, Google Drive, and local storage

20 lines (15 loc) 536 B
class BaseStorageProvider { async uploadFile(file, destinationPath) { throw new Error('Method uploadFile() must be implemented'); } async getFile(filePath) { throw new Error('Method getFile() must be implemented'); } async deleteFile(filePath) { throw new Error('Method deleteFile() must be implemented'); } getPublicUrl(filePath) { throw new Error('Method getPublicUrl() must be implemented'); } } module.exports = BaseStorageProvider;