Protected_Protected_Protected_Protected_Deletes a file permanently from Firebase Storage.
Target file footprint.
True if deleted successfully.
Downloads a file from Firebase storage locally.
File footprint.
Options containing the local path or instructing a content buffer return.
A promise resolving to the local file path or raw buffer data.
Extracts the first page of a document (e.g. PDF) via ImageMagick, resizes it, and uploads it as a thumbnail.
Original document footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Downloads an image, generates resized thumbnails via sharp, and uploads them back.
Original image footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Entry point for thumbnail generation. Analyzes the content type and automatically delegates to the appropriate generation strategy (Image, Video, or Document).
Target file footprint.
Desired dimensions.
The generated thumbnail map, or an empty object if unsupported/failed.
Extracts a single frame from a remote video via ffmpeg, resizes it, and uploads the frame as an image thumbnail.
Original video footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Computes statistics for a given bucket.
Optionalbucket: stringTarget bucket name.
Optionalprefix: stringOptional directory prefix.
A promise resolving to bucket statistics.
Provides access to the initialized Firebase getStorage() driver.
The Firebase Storage instance.
Downloads the file content locally into memory and wraps it in a Readable stream. Use carefully on large files to prevent buffer overflow.
Target file footprint.
A promise resolving to a Readable buffer stream.
Generates a secure PUT/Write URL allowing direct Firebase uploads from the client.
Upload target.
Token lifetime in seconds.
A promise resolving to the upload instructions.
Generates a signed access URL using firebase-admin.
The file to expose.
Expiration in seconds.
Optionalaction: stringThe requested action (e.g. 'read', 'write').
Optionalextra: anyOptional Firebase signed URL overrides.
A promise resolving to the signed URL payload.
ProtectedisChecks if the file is a video or audio stream based on its MIME type or file extension.
Target file.
True if the file represents a video or audio asset.
Creates a readable stream and directly pipes it into an active response.
Target file.
Output writable stream.
The piped stream instance.
Storage adapter implementing Google Firebase Storage integration. Uses
firebase-adminto manage files, metadata, and signed URLs seamlessly across Firebase buckets.