litehttp

Simple way to serve /public

Usage no npm install needed!

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

README

litehttp - Simple!

When nothin else is lite enough.

$ mkdir mysite && cd mysite
$ npm i litehttp

put an index.html file in ./public and

var server = require('litehttp');
server.listen(3000);
console.log('listening on 3000');