Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
chrome-pool
Advanced tools
Headless chrome tabs manage pool, concept come from database connection pool for reuse chrome tab improve performance.
install from npm by npm i chrome-pool
start ChromePool:
const ChromePool = require('chrome-pool');
const chromePoll = await ChromePool.new();
await chromePoll.destroyPoll();
await ChromePool.new()
will make a new ChromePool and start a new chrome. A ChromePool means a chrome.
static method new() support options:
maxTab
: {number} max tab to render pages, default is no limit.
protocols
: {array} require chrome devtool protocol to be enable before use. e.g ['Network','Log']
.
await chromePoll.destroyPoll()
can release all resource used by this pool, kill chrome.
// require a free tab from pool to use
const { tabId,protocol } = await chromeTabsPoll.require();
// tabId
const { Page,Target,Network,...} = protocol;
await chromeTabsPoll.require()
will return a object with prop:
tabId
: chrome tab id.
protocol
: chrome remote control protocol.
const { Page,Target,Network,...} = protocol;
protocol detail use see chrome-devtools-protocol doc. all protocol required be enable before use has been enable by chrome-pool.
chromeTabsPoll.release(tabId);
release
will all resource used by this tab include removeAllListeners, so you don't need to removeListener by yourself.
SHOW_CHROME=true
when run your nodejs app to disable headless to debug chrome.see test for more use case.
FAQs
headless chrome tabs manage pool
We found that chrome-pool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.