node-webserver-cli

A static webserver based on NodeJS

Usage no npm install needed!

<script type="module">
  import nodeWebserverCli from 'https://cdn.skypack.dev/node-webserver-cli';
</script>

README

nodewebserver

A static web server based on NodeJS

Install

npm i -g node-webserver-cli

Usage

node-webserver-cli # take current folder as root folder

node-webserver-cli -p 3000 # set port as 3000

node-webserver-cli -h localhost # set host as localhost

node-webserver-cli -d /user # set root folder as /user