Skip to content

ishiduca/node-static-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-static-server

Serve static files to test

install

$ npm install https://github.com/ishiduca/node-static-server/tarball/master -g

usage

$ static-server -p 3000 -r $PWD -m ./app.js
# -p ... port number
# -r ... root directory
# -m ... path to middleware files

example

$ cd example
$ static-server -r $PWD/public/ -m $PWD/lib/xhr.js

# { port: 3000,
#   root: /path/to/app/public
#   middles: [ [Function] ] }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors