/gcs-blob-store

Blob store for Google Cloud Storage

Primary LanguageTypeScriptMIT LicenseMIT

gcs-blob-store

A blob store backend for Google Cloud Storage

Pretty much just a thin wrapper around @google-cloud/storage

blob-store-compatible

Node.js CI

Usage

const { gcs } = require("gcs-blob-store");
// Use a service account credentials object
const credentials = require("./credentials.json");
const bucket = "my-gcs-bucket";
const blobs1 = gcs({ bucket, credentials });
// Or specify an absolute path to a service account key file
const keyFilename = "/home/user/.config/keyfile.json";
const blobs2 = gcs({ bucket, keyFilename });

License

MIT