launch-editor-middleware
express middleware for launching editor
Last updated 2 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install launch-editor-middleware 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.14.2                                ...           latest (2 months ago)

25 Versions

  • 2.14.2                                ...           2 months ago
  • 2.14.1                                ...           6 months ago
  • 2.14.0                                ...           6 months ago
  • 2.13.2                                ...           8 months ago
  • 2.13.1                                ...           9 months ago
  • 2.13.0                                ...           9 months ago
  • 2.12.0                                ...           a year ago
  • 2.11.1                                ...           a year ago
  • 2.11.0                                ...           a year ago
  • 2.10.0                                ...           2 years ago
  • 2.9.1                                ...           2 years ago
  • 2.9.0                                ...           2 years ago
  • 2.8.1                                ...           2 years ago
  • 2.8.0                                ...           2 years ago
  • 2.7.0                                ...           2 years ago
  • 2.6.1                                ...           3 years ago
  • 2.6.0                                ...           4 years ago
  • 2.5.0                                ...           4 years ago
  • 2.4.0                                ...           5 years ago
  • 2.3.0                                ...           5 years ago
  • 2.2.1                                ...           9 years ago
  • 2.2.0                                ...           9 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Downloads
Total 72
Today 0
This Week 8
This Month 39
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE