Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shaonianzhentan/node-red-contrib-puppeteer-js
运行JavaScript代码并返回结果
https://github.com/shaonianzhentan/node-red-contrib-puppeteer-js
Last synced: 13 days ago
JSON representation
运行JavaScript代码并返回结果
- Host: GitHub
- URL: https://github.com/shaonianzhentan/node-red-contrib-puppeteer-js
- Owner: shaonianzhentan
- License: mit
- Created: 2023-10-24T07:38:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-24T10:16:02.000Z (about 1 year ago)
- Last Synced: 2024-10-03T20:41:30.877Z (about 1 month ago)
- Language: HTML
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-red-contrib-puppeteer-js
运行JavaScript代码并返回结果input
```js
{
url: 'https://www.npmjs.com',
payload: `
const sleep = (s) => new Promise((resolve) => setTimeout(resolve, s * 1000));
await sleep(2)
return 123
`
}```
```js
'data:image/png;base64,' + msg.screenshot
```## 相关文档
- https://pptr.dev