Posted By: Anonymous
Is there Node.js ready-to-use tool (installed with
npm), that would help me expose folder content as file server over HTTP.
Example, if I have
D:Folderfile.zip D:Folderfile2.html D:Folderfolderfile-in-folder.jpg
Then starting in
I could access file via
http://hostname/file.zip http://hostname/file2.html http://hostname/folder/file-in-folder.jpg
Why is my node static file server dropping requests?
reference some mystical
standard node.js static file server
If there’s no such tool, what framework should I use?
Basic static file server in NodeJS
A good “ready-to-use tool” option could be http-server:
npm install http-server -g
To use it:
cd D:Folder http-server
Or, like this:
Check it out: https://github.com/nodeapps/http-server