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
- port. (default:3333)
- headers.
var server= require('easy-static-server');
server('../static', {
port: 9999,
headers: {
'Access-Control-Allow-Origin': '*'
}
})
// start aother server
// server('../static')