Maybe you know about this. I've added 'use strict' to the example code and tried to run it
'use strict';varstatic=require('node-static');varfileServer=newstatic.Server('./public');require('http').createServer(function(request,response){request.addListener('end',function(){fileServer.serve(request,response);}).resume();}).listen(8080);Error :
var static = require('node-static');
^^^^^^
SyntaxError: Unexpected strict mode reserved word
at Module._compile (module.js:439:25)
Could confuse the hell out of some people.
Maybe you know about this. I've added 'use strict' to the example code and tried to run it
Error :
Could confuse the hell out of some people.