🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

serve-index-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serve-index-cli

Serve a directory listing from the cli (using serve-index)

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

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/.

Keywords

directory

FAQs

Package last updated on 31 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts