launch-editor-middleware

express middleware for launching editor

MIT 24 个版本
安装
npm install launch-editor-middleware
yarn add launch-editor-middleware
pnpm add launch-editor-middleware
bun add launch-editor-middleware
README

launch-editor-middleware

An express/connect/webpack-dev-server compatible middleware for opening files in your editor from the browser, powered by launch-editor.

Usage

const launchMiddleware = require('launch-editor-middleware')

app.use('/__open-in-editor', launchMiddleware())

To launch files, send requests to the server like the following:

/__open-in-editor?file=src/main.js:13:24

Both the line and column numbers are optional. file:// URIs are also supported.

API

See index.d.ts for the full type definitions and the available arguments.

Custom editor support

This package infers the editor from currently running processes. You can override that behavior with the LAUNCH_EDITOR environment variable to force a specific editor or run a custom launch script. See the launch-editor README for details.

版本列表
2.14.1 2026-06-01
2.14.0 2026-05-29
2.13.2 2026-03-21
2.13.1 2026-02-25
2.13.0 2026-02-18
2.12.0 2025-10-28
2.11.1 2025-08-07
2.11.0 2025-07-28
2.10.0 2025-02-17
2.9.1 2024-09-05
2.9.0 2024-09-05
2.8.1 2024-08-05
2.8.0 2024-06-19
2.7.0 2024-06-16
2.6.1 2023-10-07
2.6.0 2022-08-20
2.5.0 2022-08-04
2.4.0 2022-05-25
2.3.0 2021-12-21
2.2.1 2018-01-31
2.2.0 2018-01-14
2.1.0 2018-01-06
2.0.0 2018-01-06
1.0.0 2018-01-06