http-server
Advanced tools
Comparing version 13.0.1 to 13.0.2
{ | ||
"name": "http-server", | ||
"version": "13.0.1", | ||
"version": "13.0.2", | ||
"description": "A simple zero-configuration command-line http server", | ||
@@ -5,0 +5,0 @@ "main": "./lib/http-server", |
@@ -5,5 +5,5 @@ [![GitHub Workflow Status (master)](https://img.shields.io/github/workflow/status/http-party/http-server/Node.js%20CI/master?style=flat-square)](https://github.com/http-party/http-server/actions) | ||
# http-server: a command-line http server | ||
# http-server: a simple static HTTP server | ||
`http-server` is a simple, zero-configuration command-line 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. | ||
`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. | ||
@@ -14,2 +14,8 @@ ![Example of running http-server](https://github.com/http-party/http-server/raw/master/screenshots/public.png) | ||
#### Running on-demand: | ||
Using `npx` you can run the script without installing it first: | ||
npx http-server [path] [options] | ||
#### Globally via `npm` | ||
@@ -24,8 +30,2 @@ | ||
brew install http-server | ||
#### Running on-demand: | ||
Using `npx` you can run the script without installing it first: | ||
npx http-server [path] [options] | ||
@@ -112,6 +112,17 @@ #### As a dependency in your `npm` package: | ||
Starting up http-server, serving ./ through https | ||
http-server settings: | ||
CORS: disabled | ||
Cache: 3600 seconds | ||
Connection Timeout: 120 seconds | ||
Directory Listings: visible | ||
AutoIndex: visible | ||
Serve GZIP Files: false | ||
Serve Brotli Files: false | ||
Default File Extension: none | ||
Available on: | ||
https:127.0.0.1:8080 | ||
https:192.168.1.101:8080 | ||
https:192.168.1.104:8080 | ||
https://127.0.0.1:8080 | ||
https://192.168.1.101:8080 | ||
https://192.168.1.104:8080 | ||
Hit CTRL-C to stop the server | ||
@@ -126,3 +137,3 @@ ``` | ||
$ npm i | ||
$ node bin/http-server | ||
$ npm start | ||
``` | ||
@@ -129,0 +140,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118531
140