Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 543 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 543 Bytes

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')