anystatic

Tiny NodeJS Static Web Server

Usage no npm install needed!

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

README

anystatic

Tiny NodeJS Static Web Server

Installation

npm i -g anystatic

How to use?

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

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

anystatic -h localhost # 设置host 为 localhost

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