Skip to content

cunjieliu/easyServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easyServer

a easy server for static file

###How to use

npm install easy-static-server --save-dev

npm install

in server.js

var server= require('easy-static-server');
server('yourStaticFilePath');

run like this

node server

###configuration

  1. port. (default:3333)
  2. headers.
var server= require('easy-static-server');

server('../static', {
	port: 9999,
	headers: {
		'Access-Control-Allow-Origin': '*'
	}
})

// start aother server
// server('../static')

About

a easy server for static file by nodeJs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published