@bayerjs/http-server
TypeScript icon, indicating that this package has built-in type declarations

0.3.0-alpha.1 • Public • Published

@bayerjs/http-server

Simple static HTTP server - an example package using the Bayer.js library.

Usage

The package exposes an executable http-server. Here are the different options:

$ http-server <PATH> [OPTIONS]
  <PATH>                Directory to serve
OPTIONS:
  -p --port             Port to listen to [default: 3000]
  -s --spa              Enables SPA mode (serves a file on 404 errors)
  --spa-file            File to serve on 404 errors
  --no-index            Disable serving index file on directory hits
  --index-file          Index file to serve on directory hits

Package Sidebar

Install

npm i @bayerjs/http-server

Weekly Downloads

2

Version

0.3.0-alpha.1

License

MIT

Unpacked Size

8.41 kB

Total Files

7

Last publish

Collaborators

  • solarliner