Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zjhiphop/screenshot
A tool to take the screenshot of Mobile device (puppeteer + koa2) and output to stream or image file
https://github.com/zjhiphop/screenshot
Last synced: 3 days ago
JSON representation
A tool to take the screenshot of Mobile device (puppeteer + koa2) and output to stream or image file
- Host: GitHub
- URL: https://github.com/zjhiphop/screenshot
- Owner: zjhiphop
- Created: 2022-07-31T12:43:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T14:59:15.000Z (over 2 years ago)
- Last Synced: 2024-04-16T12:57:39.750Z (7 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Screenshot
==========A NodeJS tool help to generate screenshot of mobile device to stream or image file
### Features
1. Restful API to call out-of-the box
2. Support Stream or Image file### Deps
* NodeJS v14.17.0+
* Puppeteer
* Koa2### Demo
```
curl --location --request POST 'localhost:3000/api/v1/screenshot' \
--header 'Content-Type: text/plain' \
--data-raw '{
"url":"https://baidu.com",
"tid": "test"
}'
```