# http-server-node

> simple, zero-configuration command-line http server

Latest version **1.0.2** (published 2021-08-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install http-server-node
pnpm add http-server-node
yarn add http-server-node
bun add http-server-node
```

Provides the command `http-server-node`.

## Health

**Score 5/100 (F)** — status: abandoned.

Warnings: low downloads; no types; no esm support; has vulnerabilities.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-08-19 |
| First published | 2021-08-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 1 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Guro Beridze |
| Maintainers | yan-loong |
| Keywords | Http-server, node-cli, server, static |

## Links

- npm: https://www.npmjs.com/package/http-server-node
- Repository: https://github.com/yan-loong/http-server
- Homepage: https://github.com/yan-loong/http-server#readme
- Issues: https://github.com/yan-loong/http-server/issues
- npm.io page: https://npm.io/package/http-server-node

## Dependencies (3)

- [mime-db](https://npm.io/package/mime-db.md) ^1.49.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.5
- [mime-lookup](https://npm.io/package/mime-lookup.md) 0.0.2

## Recent versions

- 1.0.2 (latest) — 2021-08-19
- 1.0.1 — 2021-08-19
- 1.0.0 — 2021-08-18

## README

# http-server-node
Simple, Based on NodeJs, command-line http server

![Example of running http-server](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Node.js_logo_2015.svg/1280px-Node.js_logo_2015.svg.png)

# http-server-node: on NodeJs based, command-line http server

`http-server-node` is a http server. It is not for Production usage only for test or learning purpose


## Installation:

#### Globally via `npm`

    npm install --global http-server-node

This will install `http-server-node` globally so that it may be run from the command line anywhere.


#### Running on-demand:

Using `npx` you can run the script without installing it first:

    npx http-server-node 
     
#### As a dependency in your `npm` package:

    npm install http-server-node

## Usage:

     http-server-node [entryPoint]

`[entryPoint]` defaults to `index.html`

*Now you can visit http://localhost:3030 to view your server*


## Available Options:

| Command         | 	Description         | Defaults  |
| -------------  |-------------|-------------|
|`-p` or `--port` |Port to use..|3030|
|`-o ` or `--open`  |Open browser window after starting the server.  |false |
|`-h` or `--host`  |Host to use |  127.0.0.1 |
|`-e` or `--entryPoint`  |Entry Point to use |index.html |


## Magic Files

- `index.html` will be served as the default file to any directory requests.

---
_Source: https://npm.io/package/http-server-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
