mrsafalpiya / spserve

Serve files to current network with ease.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spserve - Serve files to current network with ease

$ python3 -m http.server but in golang and with better UI.

Features

  • No external dependencies.
  • Excellent support for terminal browsers.
  • JavaScript support is optional.
  • Fast and easy to use.

Installation

Assuming proper golang setup, simply clone this repo, cd to repo's current directory and run the following command:

$ go install

Usage

$ spserve -h
Usage: spserve [options] root_dir

options:
  -h    Print help message
  -port int
        Port for the server to listen (default 8080)
$ spserve .
2023/01/23 23:20:07 Serving "/home/safal" in 192.168.1.87:8080
$ spserve -port 8008 ~/dl
2023/01/23 23:20:34 Serving "/home/safal/dl" in 192.168.1.87:8008

Demo

Demo

License

GPLv3. See COPYING.

About

Serve files to current network with ease.

License:GNU General Public License v3.0


Languages

Language:Go 64.4%Language:HTML 35.6%