static-dir

Start a Web Server for your current or relative directory

Usage no npm install needed!

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

README

Start a Web Server for your current or relative directory

Installation


npm install -g static-dir

Usage


  • current directory
cd TO_YOUR_DIR

static
  • relative directory
static www

note: make sure the 'www' folder is exit, else it's will work on your PWD directory*