Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dofiltra/browser-manager
https://github.com/dofiltra/browser-manager
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dofiltra/browser-manager
- Owner: dofiltra
- Created: 2021-09-17T13:41:06.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T17:27:48.000Z (over 1 year ago)
- Last Synced: 2024-09-17T01:37:14.821Z (5 months ago)
- Language: TypeScript
- Size: 114 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Browser Manager
```javascript
const browserMgr = await BrowserMgr.build({
browserType: chromium,
idleCloseSeconds: 60,
launchOpts: {
headless: true
},
device: devices['Pixel 5'],
maxOpenedBrowsers: BrowserMgr.MAX_OPEN_BROWSERS,
lockCloseFirst: 60
})const { content } = await browserMgr.getContent({
donor,
acceptor,
url,
html: text,
replacers,
removers,
customs,
isFlasher,
rewriteOpts,
virtualPath,
nReadOpts
})
await browserMgr.close()```