localhost
.http-server
http-server
is "a simple, zero-configuration command-line HTTP server." You can use it to make a file (or a directory of files) available via localhost
.http-server
via npm or Homebrew.http-server
to start a local server. There are many other tools that serve a similar purpose.cd
command to navigate into the directory that contains the HTML file:http-server
command:http-server
supports, refer to the official documentation.