xiaojudeng

新增readme

Usage no npm install needed!

<script type="module">
  import xiaojudeng from 'https://cdn.skypack.dev/xiaojudeng';
</script>

README

xiaojudeng

这是一个静态资源服务器

getting started

注意点:

此库需要node高版本的支持  因为使用了大量的es6语法

安装

npm i xiaojudeng -g
npm i xiaojudeng -save

使用:

全局:
    yl [--port/-p] 端口 [--host/-h] 主机  [--root/-r]  根目录
    默认情况下:
           端口:5000
           主机:127.0.0.1
           根目录: damu命令的运行目录
本地
    const Server = require("xiaojudeng");
    const  server = new Server({port:port,host:host,root:root});
    server.start();