node-static-custom

clone from node-static, but custom something

Usage no npm install needed!

<script type="module">
  import nodeStaticCustom from 'https://cdn.skypack.dev/node-static-custom';
</script>

README

node-static-custom

clone from node-static but add a options

serverPath

u can custom a path not just /

example: { serverPath: "/level1" }

so you can request to '/level1/xxx.html'.

Defaults to ''