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

open-editor

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-editor - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

10

index.js
'use strict';
const childProcess = require('child_process');
const execa = require('execa');
const envEditor = require('env-editor');

@@ -58,3 +58,3 @@ const lineColumnPath = require('line-column-path');

const subProcess = childProcess.spawn(result.binary, result.arguments, {
const subprocess = execa(result.binary, result.arguments, {
detached: true,

@@ -65,3 +65,3 @@ stdio

// Fallback
subProcess.on('error', () => {
subprocess.on('error', () => {
const result = make(files, {

@@ -78,5 +78,5 @@ ...options,

if (result.isTerminalEditor) {
subProcess.on('exit', process.exit);
subprocess.on('exit', process.exit);
} else {
subProcess.unref();
subprocess.unref();
}

@@ -83,0 +83,0 @@ };

{
"name": "open-editor",
"version": "2.0.1",
"version": "3.0.0",
"description": "Open files in your editor at a specific line and column",
"license": "MIT",
"repository": "sindresorhus/open-editor",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -48,11 +49,12 @@ "scripts": {

"dependencies": {
"env-editor": "^0.4.0",
"env-editor": "^0.4.1",
"execa": "^5.0.0",
"line-column-path": "^2.0.0",
"open": "^6.2.0"
"open": "^7.3.0"
},
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
"ava": "^2.4.0",
"tsd": "^0.14.0",
"xo": "^0.36.1"
}
}

@@ -1,2 +0,2 @@

# open-editor [![Build Status](https://travis-ci.org/sindresorhus/open-editor.svg?branch=master)](https://travis-ci.org/sindresorhus/open-editor)
# open-editor

@@ -18,3 +18,2 @@ > Open files in your editor at a specific line and column

## Install

@@ -26,3 +25,2 @@

## Usage

@@ -43,6 +41,5 @@

## API
### openEditor(files, [options])
### openEditor(files, options?)

@@ -63,3 +60,3 @@ Open the given files in the user's editor at specific line and column if supported by the editor. It does not wait for the editor to start or quit.

Type: `string`<br>
Type: `string`\
Default: [Auto-detected](https://github.com/sindresorhus/env-editor)

@@ -71,3 +68,3 @@

### openEditor.make(files, [options])
### openEditor.make(files, options?)

@@ -80,3 +77,2 @@ Same as `openEditor()`, but returns an object with the binary name, arguments, and a flag indicating whether the editor runs in the terminal.

## Related

@@ -86,6 +82,1 @@

- [open](https://github.com/sindresorhus/open) - Open stuff like URLs, files, executables
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)

Sorry, the diff of this file is not supported yet

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