README
安装
npm i -g anyfilestatic
使用方法
anyfilestatic # 把当前文件夹作为静态资源服务器根目录
anyfilestatic -p 8080 # 设置端口号为 8080
anyfilestatic -h localhost # 设置 host 为 localhost
anyfilestatic -d /usr # 设置根目录为 /usr
static file server
<script type="module">
import anyfilestatic from 'https://cdn.skypack.dev/anyfilestatic';
</script>
npm i -g anyfilestatic
anyfilestatic # 把当前文件夹作为静态资源服务器根目录
anyfilestatic -p 8080 # 设置端口号为 8080
anyfilestatic -h localhost # 设置 host 为 localhost
anyfilestatic -d /usr # 设置根目录为 /usr