文件名称:screenshot:重构屏幕截图即服务以使用 SlimerJS
文件大小:40KB
文件格式:ZIP
更新时间:2024-07-19 13:36:25
JavaScript
截图即服务 由和提供支持的简单屏幕截图 Web 服务。 从分叉。 设置 首先phantomjs,然后克隆这个 repo 并安装 deps: $ npm install 运行应用程序: $ node app Express server listening on port 3000 用法 要使用命令行进行快速测试,请键入: $ curl http://localhost:3000/ ? url=www.google.com > google.png 这是完整的使用文档,也可以在/usage.html上/usage.html : # Take a screenshot GET /?url=www.google.com # Return a 1024x600 PNG screenshot of the www.google.com homepage # Custom viewpo
【文件预览】:
screenshot-master
----example()
--------client.js(1006B)
----config()
--------runtime.json(2B)
--------default.yaml(501B)
----package.json(312B)
----routes()
--------index.js(7KB)
----LICENSE(11KB)
----.gitignore(19B)
----lib()
--------utils.js(312B)
--------rasterizerService.js(3KB)
--------fileCleanerService.js(1KB)
----public()
--------css()
--------form.html(3KB)
--------usage.html(2KB)
--------robots.txt(62B)
--------preview-unavailable.png(8KB)
--------favicon.ico(1KB)
----app.js(1KB)
----README.md(6KB)
----scripts()
--------rasterizer.js(3KB)