Download an Object From a Google Cloud Storage Bucket in NodeJS

Marco Rapaccini
Mar 3 · 3 min read
Photo by Tony Mucci on Unsplash

An overview

Google Cloud Storage Client Library

Authentication

export GOOGLE_APPLICATION_CREDENTIALS="/path/to/my-service-account-key.json"
$env:GOOGLE_APPLICATION_CREDENTIALS="C:\path\to\my-service-account-key.json"
set GOOGLE_APPLICATION_CREDENTIALS=C:\path\to\my-service-account-key.json

Download an object from GCS, a working example

Geek Culture

Proud to geek out. Follow to join our +1.5M monthly readers.