Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chrome-pool

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-pool - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

15

index.js

@@ -12,10 +12,13 @@ 'use strict';

async function launchChrome(port) {
const chromeFlags = [
'--disable-gpu',
'--disable-extensions',
'--disable-speech-api',
];
if (!process.env.SHOW_CHROME) {
chromeFlags.push('--headless')
}
const runner = new Runner({
port: port,
chromeFlags: [
'--headless',
'--disable-gpu',
'--disable-extensions',
'--disable-speech-api',
]
chromeFlags,
});

@@ -22,0 +25,0 @@ return await runner.launch();

2

index.test.js

@@ -5,3 +5,3 @@ 'use strict';

// process.on('unhandledRejection', r => console.log(r));
process.on('unhandledRejection', console.trace);

@@ -8,0 +8,0 @@ describe('#ChromePool', function () {

{
"name": "chrome-pool",
"version": "1.0.7",
"version": "1.0.8",
"description": "headless chrome tabs manage pool",

@@ -5,0 +5,0 @@ "keywords": [

@@ -64,2 +64,6 @@ [![Npm Package](https://img.shields.io/npm/v/chrome-pool.svg?style=flat-square)](https://www.npmjs.com/package/chrome-pool)

6. show chrome
In dev time, you may want to know what chrome are doing rather than let chrome run in headless.
You can set env `SHOW_CHROME=true` when run your nodejs app to disable headless to debug chrome.
## Dependencies

@@ -66,0 +70,0 @@ 1. [Chrome 59+](https://www.google.com/chrome/browser/desktop/index.html) should install on you system

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc