Ever wanted to quickly share files with someone, but the server did not support directory listings ? Worry Not.
This little package can quickly generate a directory listing which can be then deployed alongwith the files to make it easy to share files over free public hosting spaces like surge.sh, vercel, netlify, firebase or even your own server.
# Install
sudo npm i -g @hackcode/file-preview-page
# Run from directory where you want to generate index file
cd my-project
file-preview-page
# Checkout the index.html file created
google-chrome index.html
Note that all the file-names are clickable, to facilitate quick navigation / download.
Yash Kumar Verma |