🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

open-editor

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
o

open-editor

Open files in your editor at a specific line and column

5.1.0
latest
100

Supply Chain Security

100

Vulnerability

100

Quality

78

Maintenance

100

License

Version published
Weekly downloads
150K
-2.34%
Maintainers
0
Weekly downloads
 
Created
Issues
2

What is open-editor?

The open-editor npm package allows you to programmatically open files in the user's preferred text editor. It is useful for applications that need to provide a way for users to quickly access and edit files directly from the application interface.

What are open-editor's main functionalities?

Open a file in the default editor

This feature allows you to open a specific file at a given line and column in the user's default text editor. In this example, 'index.js' is opened at line 10, column 2.

const openEditor = require('open-editor');
openEditor(['index.js:10:2']);

Open multiple files

You can open multiple files at specific lines and columns simultaneously. This example opens 'index.js' at line 10, column 2, and 'app.js' at line 5, column 1.

const openEditor = require('open-editor');
openEditor(['index.js:10:2', 'app.js:5:1']);

Other packages similar to open-editor

FAQs

Package last updated on 22 Dec 2024

Did you know?

Socket

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.

Install

Related posts