A lightweight Node.js library for interacting with Google Cloud Storage using Firebase service account credentials (private key). Version 1.1.4 supports file upload, download, list, info, delete, bucket info, and bucket update operations. Designed for Edge runtime compatibility, it uses the official google-auth-library for authentication and simplifies bucket/file management. Unlike the main Firebase Admin SDK, this package focuses exclusively on storage with a minimal API and supports parallel uploads (configurable). Released under MIT license, actively maintained.
npm install firebase-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic upload, info, download, and delete operations using a service account with private key.
Use process.env.FIREBASE_PRIVATE_KEY?.replace(/\\n/g, '\n') to restore actual newlines.
Explicitly set 'parallels' option to a reasonable number (e.g., 5) for controlled concurrency.
Replace `{ published: true }` with `{ public: true }`.Update to v1.1+ and provide bucket in options or in each operation.
Set `esModuleInterop: true` in tsconfig.json if using require() in TypeScript.
Replace '\n' with actual newlines: const privateKey = process.env.PRIVATE_KEY.replace(/\\n/g, '\n');
Ensure file is created with `new Blob([...])` or `Buffer.from(...)`.
Set FIREBASE_PRIVATE_KEY and FIREBASE_CLIENT_EMAIL environment variables.
Verify clientEmail and bucket, and ensure the service account has Storage Object Admin role.