anyentry

tiny nodejs web server

Usage no npm install needed!

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

README

anyentry

Tiny NodeJS Static Web server

FEATURES

EDITORCONFIG HANDLEBARS ESLINT COMPRESS RANGE CURL LOCATION TEST Cache(it does only red file , don't for dircetory) Using prototype to cache picture path Using decodeURIComponent compiled picture path

安装

  npm i -g anyentry

使用方法

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

 anyentry -p 8080 # 设置端口为8080

 anyentry -h localhost # 设置host 为localhost

 anyentry -d /d # 设置根目录为 /d