serve is a command-line tool that starts a local HTTP server for a folder of static files. It is aimed at developers who want to preview a built website or share a directory over the network without writing server code. Running it in a directory serves its contents, and it can show a listing of files when no index page is present.
The tool runs as a Node.js command-line program and is published as an npm package. Its source code is public on GitHub under the MIT license, so it is free to use and modify. The facts available do not describe further options or configuration details.
Alternatives to serve
Products that do a similar job in Developer Tools.
miniserve
command-line tool that serves files and folders over HTTP
Windows Terminal
Command-line terminal app and console host for Windows
fzf
Command-line fuzzy finder for lists of files, history and any text
lazygit
Terminal UI for running git commands with keyboard shortcuts
ripgrep
command-line search tool that finds regex matches across directory trees
Alacritty
GPU-accelerated terminal emulator for Linux, macOS, Windows and BSD
bat
command-line file viewer with syntax highlighting and git integration
GitHub CLI
Command line tool for working with GitHub from the terminal