Socket
Book a DemoInstallSign in
Socket

@google-cloud-suite/cloud-functions-zip-archive

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud-suite/cloud-functions-zip-archive

@google-cloud-suite/cloud-functions-zip-archive

npmnpm
Version
0.0.24
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@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

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

FAQs

Package last updated on 25 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts