gcs-blob-store
v1.0.0
Published
abstract-blob-store implementation for Google Cloud Storage
Downloads
242
Readme
gcs-blob-store
A blob store backend for Google Cloud Storage
Pretty much just a thin wrapper around @google-cloud/storage
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 });