anystaserver

node静态资源服务器

Usage no npm install needed!

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

README

anystaserver

node静态资源服务器

安装

npm install -g anystaserver

使用方法

anystaserver # 把当前文件作为静态资源服务器

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

anystaserver -h localhost # 设置hostname 为localhost

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