browser-manager
v1.1.31
Published
```javascript const browserMgr = await BrowserMgr.build({ browserType: chromium, idleCloseSeconds: 60, launchOpts: { headless: true }, device: devices['Pixel 5'], maxOpenedBrowsers: BrowserMgr.MAX_OPEN_BROWSERS, lockCloseFirst:
Downloads
19
Readme
Browser Manager
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()