vscliveserver
v1.0.3
Published
A package for Node.js Launch a development local server with live reloading for static and dynamic pages
Maintainers
Readme
VSCLiveServer
Features:
- Hot Reload (LiveReload)
- Auto Index when
index.htmlis missing - Directory Listing (File Explorer style)
- Custom 404 Page Support
📦 Installation
Global install
npm install -g vscliveserverLocal install
npm install vscliveserver --save-devUsage
Start server in current directory
VSCLiveServer start rootStart with specific folder
VSCLiveServer start --rootfolder=./publicStart with custom port
VSCLiveServer start --rootfolder=./public --port=8080Start with custom port and root path
VSCLiveServer start root --port=8080Open active server in browser
VSCLiveServer openwebStop Server
Ctrl + C to stop server🌐 Default URL
http://localhost:PORTFeatures
Hot Reload
Reloads browser whenever files change.
Auto Index
If no index.html exists, server generates a basic page listing files.
Directory Listing
Browsing a folder shows its contents.
Custom 404
If root contains 404.html, server uses it.
Otherwise default 404 page is shown.
Example Project Structure
project/
├─ index.html
├─ app.js
├─ style.css
└─ 404.html🧪 Example Command
VSCLiveServer start --rootfolder=./website --port=3000🔧 CLI Command Summary
| Command | Description |
|--------|-------------|
| VSCLiveServer start root | Start from current folder |
| VSCLiveServer start --rootfolder=PATH | Set root folder |
| VSCLiveServer start --port=3000 | Set port |
| VSCLiveServer openweb | Open Website |
📜 License
MIT License
