Skip to content

aliaksandr-master/node-simple-static-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm npm Dependency Status devDependency Status Build Status Coverage Status

#node-simple-static-server

Simple Static Server

for install you need to run this command:

$ npm install node-simple-static-server

OPTIONS

##port default: 9000,

##dir default: './'

##log ###logs default: true

log file success

###loge default: true

log file error

##gzip default: false

##cache default: 3600

##cwd default: process.cwd()

Usage

in module

// ./static-server.js
var server = require('node-simple-static-server');
var options = {
   port: 9000
   // ...
}
server.run( options );
$ node ./static-server.js --port=9000 --cwd=/home/user/www/project/static/