svenstaro / miniserve

🌟 For when you really just want to serve some files over HTTP right now!
MIT License
6.15k stars 297 forks source link

[Feature Request] Disable CSS / Simple index #1088

Open Robtom5 opened 1 year ago

Robtom5 commented 1 year ago

To facilitate automation and minimize having to parse a ton of html it would be nice if there was a flag when starting miniserve to disable the javascript and just have a list of the available files/folders bereft of any styling

That would make is easy to run curl $URL_FOR_FOLDER to get a list of available files and folders without having to deal with regexes for content of some but not all tags

Robtom5 commented 1 year ago

Looking through the code I think the easiest way would be to have an alternative directory renderer that can be applied in lieu of the existing renderer

wrenix commented 1 year ago

you could easy curl with: curl $URL_FOR_FOLDER?raw=true