lighthouse-lambda:在AWS Lambda上运行Google Chrome Lighthouse

时间:2021-02-02 07:56:22
【文件属性】:
文件名称:lighthouse-lambda:在AWS Lambda上运行Google Chrome Lighthouse
文件大小:231KB
文件格式:ZIP
更新时间:2021-02-02 07:56:22
aws lambda chrome serverless headless joytocode /灯塔-lambda 在上运行 。 版本号 从2.x版开始, lighthouse-lambda具有相同的主版本。 例如, lighthouse-lambda 3.x将使用lighthouse 。 该自述文件适用于版本3.x。 要查看旧版本,请访问: 2.x: : 安装 $ npm install lighthouse-lambda --save Lambda函数 // index.js const createLighthouse = require ( 'lighthouse-lambda' ) exports . handler = function ( event , context , callback ) { Promise . resolve ( ) . then ( ( ) => createLighthouse ( 'https://example.com' , { logLevel : 'info' } ) ) . then ( ( { chrome , start } ) => { return sta
【文件预览】:
lighthouse-lambda-master
----results()
--------3.0.3.html(261KB)
--------2.9.4.json(257KB)
--------2.9.4.html(329KB)
--------3.0.3.json(138KB)
----.vscode()
--------settings.json(26B)
----lib()
--------index.js(901B)
----test.js(1KB)
----LICENSE(1KB)
----README.md(3KB)
----.gitignore(4KB)
----package-lock.json(101KB)
----package.json(1KB)

网友评论