casket is an HTTP server that supports GET
, POST
and DELETE
requests. It can respond in HTML, JSON and plain text format, the HTML-version being a file management UI.
It also supports file search using Spotlight. For the specific needs of mine, it serves ad-hoc M3U playlists for any directory.
npm install -g casket
Usage:
casket [--name my-little-server] [--dir ~/path/to/dir]
Options:
--name -n The name of the server, as shown in the GUI.
--dir -d The directory to serve, default is the current directory.
--readonly -r Do not allow deletion of files & uploads.
--no-delete -w Do not allow delete of files (superceded by --readonly).
--no-upload -u Do not allow upload of files (superceded by --readonly).
--port -p Default is 8000.
If you have a question, found a bug or want to propose a feature, have a look at the issues page.