# yunfeng-server

> 静态资源服务器

Latest version **1.0.0** (published 2020-08-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install yunfeng-server
pnpm add yunfeng-server
yarn add yunfeng-server
bun add yunfeng-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.0.0 |
| Published | 2020-08-21 |
| First published | 2020-08-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 50.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | anni |
| Maintainers | yunfeng_code |
| Keywords | http, server, satic |

## Links

- npm: https://www.npmjs.com/package/yunfeng-server
- npm.io page: https://npm.io/package/yunfeng-server

## Dependencies (5)

- [ejs](https://npm.io/package/ejs.md) ^3.1.5
- [etag](https://npm.io/package/etag.md) ^1.8.1
- [zlib](https://npm.io/package/zlib.md) ^1.0.5
- [yargs](https://npm.io/package/yargs.md) ^15.4.1
- [better-opn](https://npm.io/package/better-opn.md) ^2.0.0

## Recent versions

- 1.0.0 (latest) — 2020-08-21

## README

# anni-server
## 安装
```
npm install anni-server
```
## 使用
```js
// 导入模块
const Server = require('anni-server');

// 创建服务
const server = new Server({
    port: 8080,  // 可选 默认值 8000
    root: './',  // 可选 默认值当前目录
    autoOpen: true, // 可选  默认值 true
    forceCache: false,  // 可选   默认值 false
    maxAge: 3600  // 可选 默认值 3600
});

// 开启服务
server.run();
```

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