Socket
Book a DemoInstallSign in
Socket

@google-cloud-suite/cloud-functions-storage-upload

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud-suite/cloud-functions-storage-upload

@google-cloud-suite/cloud-functions-storage-upload

0.0.37
latest
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
0
Weekly downloads
 
Created
Source

@google-cloud-suite/cloud-functions-storage-upload

Upload file to storage via functions

  • Install
npm install @google-cloud-suite/cloud-functions-cloud-functions-storage-upload
  • Handle stroage trigger

You can use handle(params?: InitParams) to initialize trigger. The followings are the property of InitParams:

  • bucketName: string
  • clientSecret?: string
    • defaults: undefined
  • keyPrefix?: string
    • defaults: undefined

Examples:

  • Using event target bucket for both source and destination.
const storageUpload = require("@google-cloud-suite/cloud-functions-storage-upload");
exports.upload = storageUpload.handle();
  • Deploy
gcloud functions deploy upload \
--runtime nodejs14 \
--project YOUR_PROJECT

FAQs

Package last updated on 10 Oct 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.