serve-index-cli

1.2.1 • Public • Published

Serve Index CLI

A simple way to serve a directory listing, similar to http-server. This is just a small wrapper around serve-index, it uses serve-index for all the heavy lifting.

Install

npm install -g serve-index-cli

Basic Usage

serve-index

By default serve-index-cli only listens on localhost:3000 and servers the current directory.

Extended Usage

All args are optional

serve-index --port 3000 --ip 0.0.0.0 --dir="/path/to/awesome/files/" --icons=false --hidden=true --stylesheet="files.css" --template="index.html" --view="details"

For more information about the options, check the serve-index configuration options.

serve-index-cli also supports a --json-list flag that will generate a list.json that contains a list of all the files in the directory tree.

License

Copyright (C) 2016 Brian Douglass

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.1
    0
  • 1.2.0
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i serve-index-cli

Weekly Downloads

0

Version

1.2.1

License

GPL-3.0

Last publish

Collaborators

  • bhdouglass