A static file server written in TypeScript.
From within any directory, simply run Butler in the terminal:
A server will be launched on port
localhost:8080, listing all directories and
files in the current directory. Directories containing an
will automatically render them instead of listing files. You can also provide a
directory name as an argument when running
butler in order to serve files
from that directory (as opposed to the current working directory).
You may provide one or more options when running
--port: Specify the port from which to serve (defaults to
--ngrok: Create a secure tunnel to the local server using ngrok. Please note that the address is publicly accessible and may expose private files.
You must install Butler globally:
yarn global add butler-server # Or npm install -g butler-server
Note that the correct NPM package name is