@google-cloud-suite/cloud-functions-zip-archive
v0.0.37
Published
@google-cloud-suite/cloud-functions-zip-archive
Downloads
33
Readme
@google-cloud-suite/cloud-functions-zip-archive
Create zip file on Cloud Storage
- Install
npm install @google-cloud-suite/cloud-functions-zip-archive
- Handle http trigger
You can use handle(params?: InitParams)
to initialize trigger. The followings are the property of InitParams:
- bucketName: string
- clientSecret?: string
- defaults:
undefined
- defaults:
Examples:
const zipArchive = require("@google-cloud-suite/cloud-functions-zip-archive");
exports.zipArchive = zipArchive.handle();
- Deploy
gcloud functions deploy zipArchive \
--runtime nodejs14 \
--project YOUR_PROJECT