Skip to content

Instantly share code, notes, and snippets.

View iwozzy's full-sized avatar

Paul Wozniak iwozzy

View GitHub Profile
@iwozzy
iwozzy / GoogleCloudStorage.js
Last active February 16, 2022 04:13
Google Cloud Storage with Node.js
var Promise = require('bluebird');
var GoogleCloudStorage = Promise.promisifyAll(require('@google-cloud/storage'));
var storage = GoogleCloudStorage({
projectId: 'PROJECT_ID',
keyFilename: 'keyfile.json'
})
var BUCKET_NAME = 'my-bucket'
// https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.39.0/storage/bucket