{"repo":"http-party/http-server","free":true,"listed":false,"github":"https://github.com/http-party/http-server","clone":"git clone https://github.com/http-party/http-server.git","description":"A simple, zero-configuration, command-line http server","language":"JavaScript","stars":14206,"topics":["http","static","hosting","server","command-line","hacktoberfest","http-server","static-server"],"license":"MIT","category":"cli-tools","readme_excerpt":"http-server: a simple static HTTP server http-server is a simple, zero-configuration command-line static HTTP server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development and learning. Installation: Running on-demand: Using npx you can run the script without installing it first: npx http-server [path] [options] Globally via npm npm install --global http-server This will install http-server globally so that it may be run from the command line anywhere. Globally via Homebrew brew install http-server As a dependency in your npm package: npm install http-server Using Docker Note: a public image is not provided currently, but you can build one yourself with the provided Dockerfile. 1. Create an image 2. Run a container In the example above we're serving the directory ./ (working directory). If you wanted to serve ./test you'd replace ${pwd} with ${pwd}/test . Usage: http-server [path] [options] [path] defaults to ./public if the folder exists, and ./ otherwise. Now you can visit http://localhost:8080 to view your server Note: Caching is on by default. Add -c-1 as an option to disable caching. Available Options: Command Description Defaults ------------- ------------- ------------- -p or --port Port to use. Use -p 0 to look for an open port, starting at 8080. It will also read from process.env.PORT . 8080 -a Address to use 0.0.0.0 --base-dir Base path to serve files from / -d Show directory listings true -dir-over","default_branch":null,"files":null,"tree":[],"storefront":"/r/http-party","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/http-party/http-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}