# static-files-server

> 一个基于Node实现的小型静态资源服务器

Latest version **0.1.1** (published 2018-03-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install static-files-server
pnpm add static-files-server
yarn add static-files-server
bun add static-files-server
```

Provides the command `file-server`.

## 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.1.1 |
| Published | 2018-03-11 |
| First published | 2018-03-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jiangyx3915 |

## Links

- npm: https://www.npmjs.com/package/static-files-server
- Repository: https://github.com/jiangyx3915/file-server
- Homepage: https://github.com/jiangyx3915/file-server#readme
- Issues: https://github.com/jiangyx3915/file-server/issues
- npm.io page: https://npm.io/package/static-files-server

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^2.3.2
- [yargs](https://npm.io/package/yargs.md) ^11.0.0
- [handlebars](https://npm.io/package/handlebars.md) ^4.0.11

## Recent versions

- 0.1.1 (latest) — 2018-03-11
- 0.1.0 — 2018-03-11

## README

# Static-Files-Server

一个基于Node实现的小型静态资源服务器

## 安装

``` shell
npm i -g static-files-server
```

## 使用方法

``` shell
# 将当前文件夹作为静态资源服务器的根目录
file-server

# 设置端口号 （默认为9393）
file-server -p 9393

# 设置主机地址 （默认为本机地址）
file-server -h 127.0.0.1  

# 设置根目录地址为/usr
file-server -d /usr
```

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