{"id":21500507,"url":"https://github.com/node-libraries/firebase-storage","last_synced_at":"2025-06-30T05:03:12.812Z","repository":{"id":208968355,"uuid":"722919155","full_name":"node-libraries/firebase-storage","owner":"node-libraries","description":"Easily operate Google cloud storage with a private key","archived":false,"fork":false,"pushed_at":"2024-03-30T07:38:47.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T08:05:03.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-libraries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-24T09:05:30.000Z","updated_at":"2023-11-24T09:31:00.000Z","dependencies_parsed_at":"2024-11-23T17:42:04.334Z","dependency_job_id":"8cfc1ad0-2226-4f4f-a223-cb8055f2bfd4","html_url":"https://github.com/node-libraries/firebase-storage","commit_stats":null,"previous_names":["node-libraries/firebase-storage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/node-libraries/firebase-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Ffirebase-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Ffirebase-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Ffirebase-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Ffirebase-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-libraries","download_url":"https://codeload.github.com/node-libraries/firebase-storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Ffirebase-storage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262714470,"owners_count":23352462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T17:41:58.055Z","updated_at":"2025-06-30T05:03:12.778Z","avatar_url":"https://github.com/node-libraries.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firebase-storage\n\nEasily operate Google cloud storage with a private key.\nWorks with `Edge runtime`.\n\n## Sample\n\n```ts\nimport { getStorage } from \"firebase-storage\";\n\nconst privateKey =\n  \"-----BEGIN PRIVATE KEY-----\\nXXXXXXXXXXXXXXXX-----END PRIVATE KEY-----\\n\";\nconst clientEmail =\n  \"firebase-adminsdk-XXXXX0XXXXX@XXXXXXX.iam.gserviceaccount.com\";\nconst bucket = \"XXXXXXXX.appspot.com\"; // Can also be specified in each function\nconst parallels = 5; //default 1000\n\nasync function main() {\n  const storage = getStorage({ privateKey, clientEmail, bucket, parallels });\n  const file = new Blob([\"Test value\"], {\n    type: \"text/plain\",\n  });\n\n  await storage\n    .upload({\n      published: true,\n      name: \"test\",\n      file,\n      metadata: {\n        cacheControl: \"public, max-age=31536000, immutable\",\n      },\n    })\n    .then(console.log);\n  await storage.list({ bucket }).then((objects) =\u003e objects.map(console.log));\n  await storage.info({ name: \"test\" }).then(console.log);\n  await storage\n    .download({\n      name: \"test\",\n    })\n    .then((v) =\u003e {\n      console.log(new TextDecoder().decode(v));\n    });\n  await storage.del({ name: \"test\" }).then(console.log);\n  await storage.infoBucket({ bucket }).then(console.log);\n  await storage.updateBucket({ bucket, body: {} }).then(console.log);\n}\n\nmain().catch(console.error);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Ffirebase-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-libraries%2Ffirebase-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Ffirebase-storage/lists"}