Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/enncy/jpptr

a json syntactic sugar for execute puppeteer 一个使用 json 语法糖去执行 puppeteer 的框架
https://github.com/enncy/jpptr

headless-chrome jpptr json nodejs puppeteer syntatic-sugar typescript

Last synced: 2 months ago
JSON representation

a json syntactic sugar for execute puppeteer 一个使用 json 语法糖去执行 puppeteer 的框架

Awesome Lists containing this project

README

        

# Jpptr

![GitHub top language](https://img.shields.io/github/languages/top/enncy/jpptr) ![GitHub repo size](https://img.shields.io/github/repo-size/enncy/jpptr) ![npm](https://img.shields.io/npm/v/jpptr) ![npm](https://img.shields.io/npm/dw/jpptr) ![GitHub](https://img.shields.io/github/license/enncy/jpptr)

[中文](https://github.com/enncy/jpptr/blob/main/README.md) | [English](https://github.com/enncy/jpptr/blob/main/README.en-US.md)

[Document](https://enncy.github.io/jpptr-docs/) | [API](https://github.com/enncy/jpptr/blob/main/docs/api.md) | [Sample](https://github.com/enncy/jpptr/tree/main/sample)

> a json syntactic sugar for execute puppeteer.
> Jpptr use json to execute puppeteer, just as you can use javascript to execute puppeteer.
- you can extend the functionality as much as you want.
- you can dynamically add and modify events.
- and more...

## Example
```json
["goto","https://example.com"]
```
parse to
```json
{
"use":"function",
"name":"goto",
"args":["https://example.com"]
}
```
finally
```js
page.goto("https://example.com")
```

## Document
https://enncy.github.io/jpptr-docs/
## API

https://github.com/enncy/jpptr/blob/main/docs/api.md

## Sample
https://github.com/enncy/jpptr/tree/main/sample