# server-st

> A simple command-line static server

Latest version **1.1.3** (published 2018-04-25) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install server-st
pnpm add server-st
yarn add server-st
bun add server-st
```

Provides the command `server-st`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2018-04-25 |
| First published | 2018-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 21.2 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AlexShan |
| Maintainers | alexshan2008 |
| Keywords | static server, cli, command |

## Links

- npm: https://www.npmjs.com/package/server-st
- Repository: https://github.com/AlexShan2008/server-st
- Issues: https://github.com/AlexShan2008/server-st/issues
- npm.io page: https://npm.io/package/server-st

## Dependencies (6)

- [ejs](https://npm.io/package/ejs.md) ^2.5.8
- [mime](https://npm.io/package/mime.md) ^2.3.1
- [chalk](https://npm.io/package/chalk.md) ^2.3.2
- [debug](https://npm.io/package/debug.md) ^3.1.0
- [yargs](https://npm.io/package/yargs.md) ^11.0.0
- [supervisor](https://npm.io/package/supervisor.md) ^0.12.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2018-04-25
- 1.1.2 — 2018-04-25
- 1.1.1 — 2018-04-24
- 1.0.10 — 2018-04-22
- 1.0.9 — 2018-04-20
- 1.0.8 — 2018-04-18
- 1.0.6 — 2018-04-18
- 1.0.5 — 2018-04-18
- 1.0.4 — 2018-04-18
- 1.0.3 — 2018-04-17
- 1.0.2 — 2018-04-17
- 1.0.1 — 2018-04-17
- 1.0.0 — 2018-04-15

## README

# server-st: a command-line static server

## 1. Installing Globally
```sh
$ npm i server-st -g
```
## 2. Usage:  server-st [options]: 
```sh
 $ cd TargetFolder 
 $ server-st -p 3000 --open 
```
> `-p 3000` port number default: 8080 
>  `--open` auto open browser

## 3.  *Then you can visit `TargetFolder contents`  in your browser*

## 4. Available Options:
```
 --version       Show version number                                   [boolean]
  -p, --port      server port                                    [default: 8080]
  -o, --hostname  host                                    [default: "localhost"]
  -d, --dir       exec directory                   [default: "C:\Users\ShanGuo"]
  -h, --help      Show help                                            [boolean]

```

#  Development

Checkout this repository locally, then:
```sh
$ npm i
$ node bin/server-st
```

*Then you can visit http://localhost:8080 to view your static server*

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