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

launch-editor

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

launch-editor - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

15

guess.js

@@ -16,2 +16,7 @@ const path = require('path')

}
if (process.versions.webcontainer) {
return [process.env.EDITOR || 'code']
}
// We can find out which editor is currently running by:

@@ -22,3 +27,7 @@ // `ps x` on macOS and Linux

if (process.platform === 'darwin') {
const output = childProcess.execSync('ps x').toString()
const output = childProcess
.execSync('ps x', {
stdio: ['pipe', 'pipe', 'ignore']
})
.toString()
const processNames = Object.keys(COMMON_EDITORS_OSX)

@@ -56,3 +65,5 @@ for (let i = 0; i < processNames.length; i++) {

const output = childProcess
.execSync('ps x --no-heading -o comm --sort=comm')
.execSync('ps x --no-heading -o comm --sort=comm', {
stdio: ['pipe', 'pipe', 'ignore']
})
.toString()

@@ -59,0 +70,0 @@ const processNames = Object.keys(COMMON_EDITORS_LINUX)

2

package.json
{
"name": "launch-editor",
"version": "2.3.0",
"version": "2.4.0",
"description": "launch editor from node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

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