New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-open-in-editor

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-open-in-editor - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

4

HISTORY.md

@@ -0,1 +1,5 @@

## 3.1.1 (November 10, 2017)
- Fixed absolute filepath on Windows (#7)
## 3.1.0 (October 1, 2017)

@@ -2,0 +6,0 @@

9

index.js

@@ -32,5 +32,8 @@ var url = require('url');

// should take in account options.base
filename = path
.join(cwd, path.resolve('/', filename))
.replace(/^[a-z]+:/i, ''); // cut drive from path on Windows platform
filename = path.join(
cwd,
path
.resolve('/', filename)
.replace(/^[a-z]+:/i, '') // cut drive from path on Windows platform
);

@@ -37,0 +40,0 @@ opener.open(filename).then(

{
"name": "express-open-in-editor",
"version": "3.1.0",
"version": "3.1.1",
"description": "Express middleware to open file in editor",

@@ -5,0 +5,0 @@ "author": "Roman Dvornov <rdvornov@gmail.com>",

@@ -30,3 +30,3 @@ [![NPM version](https://img.shields.io/npm/v/express-open-in-editor.svg)](https://www.npmjs.com/package/express-open-in-editor)

// - to trigger middleware on *any* request method to *any* path
// (not recomended unless server's single purpose is to open files in editor)
// (not recommended unless server's single purpose is to open files in editor)
app.use(openInEditor());

@@ -33,0 +33,0 @@ ```

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