Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
}'
```