localhost-server

A localhost http web server command tool, which creates a localhost:8080/file.html connect locally.

Usage no npm install needed!

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

README

localhost-server

A localhost http web server command tool, which creates a localhost:8080/file.html connect locally.

Install

$ npm install -g localhost-server

Usage

// /folder
//      file.html

$ localhost-server

//Local server create successed
//Open localhost:8080/file.html

Server starteds: localhost:8080

License

MIT