A static web server module
Want to see pretty graphs? Log in now!
npm install node-serve
|1||downloads in the last day|
|10||downloads in the last week|
|23||downloads in the last month|
|Last Published By|
|Version||0.0.3 last updated 4 months ago|
|Dependencies||expires, pkg, commander, express|
A command line tool for easily spawning static file servers
$ npm install -g node-serve
Just run the command
serve from the directory you want to serve files from.
The address to listen to (default is "0.0.0.0").
The port to listen to (default is 8080).
The path to serve files from (default is "." or the current working directory).
The duration of the file cache (defualt is 0). Can support a number of milliseconds, or a more complex time string, eg.
- "5 minutes"
- "0.5 hr"
- "2/3 day"