yunfeng-server

1.0.0 • Public • Published

anni-server

安装

npm install anni-server

使用

// 导入模块
const Server = require('anni-server');

// 创建服务
const server = new Server({
    port: 8080,  // 可选 默认值 8000
    root: './',  // 可选 默认值当前目录
    autoOpen: true, // 可选  默认值 true
    forceCache: false,  // 可选   默认值 false
    maxAge: 3600  // 可选 默认值 3600
});

// 开启服务
server.run();

Readme

Keywords

Package Sidebar

Install

npm i yunfeng-server

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

51.6 kB

Total Files

14

Last publish

Collaborators

  • yunfeng_code