serve-dir

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

serve-dir

Portable HTTP directory server inspired by qrcp.

Install

go install github.com/vearutop/serve-dir@latest
$(go env GOPATH)/bin/serve-dir --help

Or download binary from releases.

Linux AMD64
wget https://github.com/vearutop/serve-dir/releases/latest/download/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz && rm linux_amd64.tar.gz
./serve-dir -version
Linux ARM64
wget https://github.com/vearutop/serve-dir/releases/latest/download/linux_arm64.tar.gz && tar xf linux_arm64.tar.gz && rm linux_arm64.tar.gz
./serve-dir -version
Macos Intel
wget https://github.com/vearutop/serve-dir/releases/latest/download/darwin_amd64.tar.gz && tar xf darwin_amd64.tar.gz && rm darwin_amd64.tar.gz
codesign -s - ./serve-dir
./serve-dir -version
Macos Apple Silicon (M1, etc...)
wget https://github.com/vearutop/serve-dir/releases/latest/download/darwin_arm64.tar.gz && tar xf darwin_arm64.tar.gz && rm darwin_arm64.tar.gz
codesign -s - ./serve-dir
./serve-dir -version

Usage

Run serve-dir in the directory you want to serve. HTTP address and QR code will appear.

image

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
⌂ 换网址