# node-serve

> A static web server module

Latest version **0.0.3** (published 2013-12-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-serve
pnpm add node-serve
yarn add node-serve
bun add node-serve
```

Provides the command `serve`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2013-12-19 |
| First published | 2013-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+5 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | k |

## Links

- npm: https://www.npmjs.com/package/node-serve
- npm.io page: https://npm.io/package/node-serve

## Dependencies (4)

- [pkg](https://npm.io/package/pkg.md) 0.0.1-1
- [expires](https://npm.io/package/expires.md) 0.0.0
- [express](https://npm.io/package/express.md) ~3.3.3
- [commander](https://npm.io/package/commander.md) ~1.2.0

## Recent versions

- 0.0.3 (latest) — 2013-12-19
- 0.0.2 — 2013-07-18
- 0.0.1 — 2013-07-18

## README

# serve

A command line tool for easily spawning static file servers

## Install

```bash
$ npm install -g node-serve
```

## Basic Usage

Just run the command `serve` from the directory you want to serve files from.

## Advanced Options

### --addr [addr]

The address to listen to (default is "0.0.0.0").

### --port [port]

The port to listen to (default is 8080).

### --path [path]

The path to serve files from (default is "." or the current working directory).

### --cache [cache]

The duration of the file cache (defualt is 0). Can support a number of milliseconds, or a more complex time string, eg.

* "5 minutes"
* "0.5 hr"
* "2/3 day"

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