anyweb

Tiny NodeJS Web Server

Usage no npm install needed!

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

README

anyweb

Tiny NodeJS Web Server

安装指南

npm i -g anyweb

使用方法

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

anyweb -p 8888 # 设置端口号为8888

anyweb -h localhost # 设置主机名为localhost

anyweb -r /user # 设置根目录为/user