@google-cloud-suite/cloud-functions-puppeteer-pdf-export
v0.0.37
Published
@google-cloud-suite/cloud-functions-puppeteer-pdf-export
Downloads
32
Readme
@google-cloud-suite/cloud-functions-puppeteer-pdf-export
Create pdf of website screenshot
- Install
npm install @google-cloud-suite/cloud-functions-puppeteer-pdf-export
- 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:
- keyPrefix?: string
- defaults:
undefined
- defaults:
Examples:
const pdfExport = require("@google-cloud-suite/cloud-functions-puppeteer-pdf-export");
exports.pdfExport = pdfExport.handle();
- Deploy
gcloud functions deploy pdfExport \
--runtime nodejs14 \
--project YOUR_PROJECT