exposefolder

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

README

exposefolder

A oneline web server for development purposes.

Screenshot

Motivation

When I need to quickly serve a folder via http for whatever reason I usually use python3 -m http.server.

Apart from developing a web application, which is a one way street from the server to the browser, I sometimes wished you could easily upload files without any hassle.

exposefolder serves a folder with file listings, when there is no index file present. On a listing you can just drag and drop file into the browser and they appear, just like magic ✨.

Usage

$ exposefolder -h
Usage of exposefolder:
  -foldername string
	Path of the folder to expose (default ".")
  -port int
	Port to bind the web server on (default 8080)
$ exposefolder -foldername myproject -port 1234
2021/04/01 00:48:58 serving "myproject" on ":1234"

Installation

Using Go:

$ go install github.com/lukasdietrich/exposefolder@master

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL