@o-town/devshare
v1.0.0
Published
Local dev server with instant public sharing + QR code
Maintainers
Readme
Install
npm installUsage
# Basic local server (port 3000, current directory)
npm run dev
# Share publicly + show QR code in terminal
npm run dev -- --share --qrcode
# Custom port and directory
npm run dev -- -p 8080 -d ./dist
# All options
npm run dev -- --share --qrcode --port 8080 --dir ./dist --openOptions
| Flag | Alias | Default | Description |
|------|-------|---------|-------------|
| --port | -p | 3000 | Port to serve on |
| --dir | -d | . | Directory to serve |
| --share | -s | false | Create a public tunnel URL |
| --qrcode | -q | false | Display QR code in terminal |
| --open | -o | false | Open browser on start |
| --watch | -w | true | Watch for file changes |
| --no-watch | | | Disable live reload |
Features
- ⚡ Live Reload — WebSocket-based hot reload injected into every HTML page
- 🌐 Public Sharing — One flag (
--share) exposes your server via tunnelmole - 📱 QR Code — Terminal QR code for instant mobile testing
- 📂 Auto Directory Listing — Browse folders with a slick dark UI
- 🎨 Beautiful CLI — Figlet banner, colored status, clean output
Global Install
npm install -g .
devshare --share --qrcodeLicense
MIT
