Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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.
port
: {number} chrome debug port, default is random a free port.
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.
chromeTabsPoll.release(tabId);
release
will all resource used by this tab include removeAllListeners.
see test for more use case.
SHOW_CHROME=true
when run your nodejs app to disable headless to debug chrome.FAQs
headless chrome tabs manage pool
The npm package chrome-pool receives a total of 6 weekly downloads. As such, chrome-pool popularity was classified as not popular.
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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.