New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@p4d/chrome

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@p4d/chrome - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

45

actions.js

@@ -1,29 +0,40 @@

const opn = require('opn')
const { exec } = require('child_process')
// Command to open Google chrome
let cmd = [
'export DISPLAY=:0',
'&&'
]
switch (process.platform) {
case 'darwin':
cmd.push('google chrome')
break
case 'linux':
cmd.push('/usr/bin/google-chrome')
break
}
let options = [
'--kiosk',
'--incognito',
// '--ignore-certificate-errors',
'--start-fullscreen',
'--chrome-frame',
'--no-default-browser-check',
'--disable-infobars',
'--disable-translate',
'--disable-first-run-ui',
'--disable-translate',
'--disable-restore-session-state',
'--ignore-certificate-errors'
'--disable-restore-session-state'
]
// Command to open Google chrome
let cmd = ''
switch (process.platform) {
case 'darwin':
cmd = 'google chrome'
break
case 'linux':
cmd = 'google-chrome'
break
}
options.unshift(cmd)
function open (url) {
opn(url, { app: options, wait: false })
exec([...cmd, url, ...options].join(' '), (err, stdout, stderr) => {
if (err) {
console.log(err)
return
}
console.log('stdout: %s', stdout)
console.log('stderr: %s', stderr)
})
}

@@ -30,0 +41,0 @@

{
"name": "@p4d/chrome",
"version": "1.0.1",
"version": "1.1.0",
"description": "P4D command line tool to manage chrome autostart page.",

@@ -15,4 +15,3 @@ "preferGlobal": true,

"dependencies": {
"commander": "^2.15.0",
"opn": "^5.3.0"
"commander": "^2.15.0"
},

@@ -19,0 +18,0 @@ "keywords": [

@@ -7,3 +7,3 @@ #!/usr/bin/env node

program
.version('1.0.1')
.version('1.1.0')
.description('P4D command line tool to manage chrome autostart page.')

@@ -10,0 +10,0 @@

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