1.1.1 • Published 5 years ago

express-filehost v1.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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
1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago