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

express-serve-writable

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-serve-writable

Express middleware for writing to the filesystem with PUT/DELETE requests

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

express-serve-writable

Express middleware for writing to the filesystem with PUT/DELETE requests.

express-serve-writable is the writable complement to expressjs/serve-static's static file serving.

This will create a web server that will serve up files in a folder, and let you write or delete files inside that same folder:

var express = require("express");
var serveStatic = require("serve-static");
var serveWritable = require("express-serve_writable");

var args = process.argv.slice(2);
var root = args[0];

var app = express();
app.use(serveStatic(root));
app.use(serveWritable(root));
app.listen(3000);

Isn't this a security problem?

Yes.

What's the use-case for this?

I want to build some local development tools for my HTML5 video games, and since the games are in HTML, the tools should be too. The problem is that the browser isn't allowed to write to the filesystem, and I need to do that.

Keywords

FAQs

Package last updated on 04 Jan 2015

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

  • 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