1.0.13 • Published 1 month ago

basic-node-server v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

basic-node-server

Basic node server for everyone.

Basic node server simply hosts and serves files from the current project directory through HTTP. If no path is given, or if the path ends with '/' or '\', it will serve the index.html file in the directory.

Installation

npm install basic-node-server

Usage

Then, you can run it from your project directory:

npx bns [port] [404.page]

The port argument is optional. If no port is given, it will default to 3000.

For example, if you want to serve the current directory on port 8080, you would run:

npx bns 8080

If you need to setup additional 404 page you can do so by:

npx bns 8080 your404page.html
1.0.13

1 month ago

1.0.12

1 month ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago