localhost

Http static file server

Usage no npm install needed!

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

README

localhost

Static file server which returns files regardless of the header method - unlike popular others.

Embed within a NodeJS script

npm install localhost --save-dev
require('localhost')('./').listen(port);

Run as an executable

localhost [directory] [-p portNumber|8080]

npm install -g localhost
cd ./www/
localhost