# tiny-server

> a tiny Web Server

Latest version **1.1.1** (published 2022-07-30) · MIT license · 0 weekly downloads

## Install

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

Provides the command `tiny-server`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-07-30 |
| First published | 2015-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | zbinlin |
| Maintainers | zbinlin |
| Keywords | http, web, server, tiny |

## Links

- npm: https://www.npmjs.com/package/tiny-server
- Repository: https://github.com/zbinlin/tiny-server
- Homepage: https://github.com/zbinlin/tiny-server#readme
- Issues: https://github.com/zbinlin/tiny-server/issues
- npm.io page: https://npm.io/package/tiny-server

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2022-07-30
- 1.1.0 — 2018-11-23
- 1.0.2 — 2015-07-19
- 1.0.1 — 2015-07-16
- 1.0.0 — 2015-07-16

## README

# tiny-server

A tiny Web Server


## Install

You can install to global

```shell
npm install -g tiny-server
```

or as a module

```shell
npm install tiny-server
```


## Usage

### global

```shell
tiny-server
```

It will use terminal's current working directory as the web server's root directory.
And the server's port is 3000.

You can specify a path as web server's root directory:

```shell
tiny-server ./www
```

You can export environment `PORT` value as the server's port:

```shell
export PORT=3001 && tiny-server;
```

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