Socket
Book a DemoInstallSign in
Socket

open-editor

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-editor

Open files in your editor at a specific line and column

5.1.0
latest
Source
npmnpm
Version published
Weekly downloads
185K
-1.04%
Maintainers
1
Weekly downloads
 
Created

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

Keywords

open

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.