playwright-aws-lambda:支持在AWS Lambda和Google Cloud Functions上运行Microsoft的Playwright

时间:2021-01-30 05:41:21
【文件属性】:
文件名称:playwright-aws-lambda:支持在AWS Lambda和Google Cloud Functions上运行Microsoft的Playwright
文件大小:42.06MB
文件格式:ZIP
更新时间:2021-01-30 05:41:21
aws lambda google cloud function Playwright-Aws-Lambda 支持在AWS Lambda和Google Cloud Functions上运行的Playwright。 注意:当前仅支持Chromium。 安装 npm install playwright-core playwright-aws-lambda --save 用法 此程序包可立即使用nodejs10.x和nodejs12.x AWS Lambda运行时。 const playwright = require ( 'playwright-aws-lambda' ) ; exports . handler = async ( event , context ) => { let browser = null ; try { const browser = await playwright . launchChromium ( ) ; const context = await browser . newContext ( ) ; const page = await context . newPage ( )
【文件预览】:
playwright-aws-lambda-master
----.lintstagedrc(63B)
----tsconfig-src-cjs.json(139B)
----package.json(1KB)
----tslint.json(210B)
----.github()
--------workflows()
----.prettierrc(71B)
----.prettierignore(13B)
----jest.config.js(501B)
----LICENSE(1KB)
----src()
--------bin()
--------util()
--------index.ts(28B)
--------chromium.ts(4KB)
----.npmignore(153B)
----.huskyrc(53B)
----tsconfig.json(560B)
----buildbots()
--------assets()
--------test.sh(497B)
----.gitignore(68B)
----README.md(2KB)
----yarn.lock(197KB)

网友评论