xiaozhong-server

Node.js Static Web Server

Usage no npm install needed!

<script type="module">
  import xiaozhongServer from 'https://cdn.skypack.dev/xiaozhong-server';
</script>

README

xiaozhong-server

Node.js Static Web Server

安装

npm install xiaozhong-server

使用方法

xiaozhongserver # 把当前文件夹作为静态资源服务器根目录

xiaozhongserver -p 8080 # 设置端口号为 8080

xiaozhongserver -h localhost # 设置 host 为 localhost

xiaozhongserver -d /usr # 设置根目录为 /usr