slr

simple livereload server cli

Usage no npm install needed!

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

README

SLR

Dependency status

SLR (simple live reload) is a small command line utility that is able to spin a small webserver with livereaload functionality build in.

Install

npm install slr -g

Usuage

$ slr --help

  Usage: slr [options]

  Options:

    -h, --help                    output usage information
    -V, --version                 output the version number
    -p, --port <port>             Change static server port [8000]
    -P, --livereload-port <port>  Change livereload port [35729]
    -d, --directory <path>        Change the default directory for serving files [.]
    -s, --spa                     Return index.html when HTML request is not found

Licence

MIT Licence