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

express-filehost

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-filehost

Allows you to get files from a folder on a certain endpoint for example /files/image.png

  • 1.1.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

express-filehost

Allows you to host the content from a folder and then access it through a GET method on the /files endpoint /files/(file) or /files/(folder)/(file) etc. the default is /files but can also be changed

Usage

const filehost = require("express-filehost") 

filehost.host("./example-folder", "examples") 
//the second argument is "files" by default which results to the endpoint being /files

//   2 folders can NOT use the same endpoint

filehost.port(3000) //use the port 3000

Install

npm install express-filehost

Keywords

FAQs

Package last updated on 07 Apr 2020

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