genindex-cli

Beautiful directory listing for static file sharing

Usage no npm install needed!

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

README

genindex - index.html for files


Instalation

npm install -g genindex-cli

Usage


Usage: genindex <directory> <url?>

    <directory> - path to directory
    <url>  - start url for files
             add dot with slash by default,
             or get it from .URL file


$ genindex . 'http://example.com/static'

.URL file

You can also save your url to a .URL file so you don’t have to type it into the CLI either.

.description.json file

Better watch the example

And then

$ genindex .