zserv
v0.1.1
Published
A simple, lightweight, and modern HTTP file server.
Maintainers
Readme
zserv
A simple, lightweight, and modern HTTP file server.
zserv is designed to be a fast and easy way to serve static files from any directory. It's perfect for development, testing, or sharing files on a local network.
Installation
Quick Start (No Installation)
# Using npx (Node.js)
npx zserv
# Using bunx (Bun)
bunx zservGlobal Installation
# NPM
npm install -g zserv
# Bun
bun install -g zservUsage
zserv [OPTIONS] [PATH]Examples
# Serve current directory on port 8080
zserv
# Serve a specific directory
zserv ./public
# Specify a custom port
zserv -p 3000
# Enable CORS headers
zserv --cors
# Listen on localhost only
zserv -a 127.0.0.1Options
Usage: zserv [OPTIONS] [PATH]
Arguments:
[PATH] Directory to serve [default: .]
Options:
-p, --port <PORT> Port to listen on [default: 8080]
-a, --address <ADDRESS> Address to bind to [default: 0.0.0.0]
--cors Enable CORS headers
-s, --silent Suppress log output
-h, --help Print help
-V, --version Print versionAbout
This NPM package provides a wrapper that automatically downloads and runs the appropriate binary for your platform. The actual implementation is written in Rust and is also available on crates.io.
For more information, visit the GitHub repository.
