{"size": 710, "ext": "js", "max_stars_repo_path": "server/nodejs/lsjsserver/lib/lsjsserver.js", "max_stars_repo_name": "Hashbrown777/lsjs", "max_stars_repo_stars_event_min_datetime": "2015-01-16T08:15:09.000Z", "max_stars_repo_stars_event_max_datetime": "2018-06-16T10:57:19.000Z", "max_issues_repo_path": "server/nodejs/lsjsserver/lib/lsjsserver.js", "max_issues_repo_name": "Hashbrown777/lsjs", "max_issues_repo_issues_event_min_datetime": "2021-05-23T03:11:39.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-14T11:28:59.000Z", "max_forks_repo_path": "server/nodejs/lsjsserver/lib/lsjsserver.js", "max_forks_repo_name": "Hashbrown777/lsjs", "max_forks_repo_forks_event_min_datetime": "2015-01-21T13:44:07.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-23T03:04:03.000Z"}
{"max_stars_count": 13, "max_issues_count": 8, "max_forks_count": 4, "avg_line_length": 30.8695652174, "max_line_length": 75, "alphanum_fraction": 0.7197183099}
/*
    Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
    Available via Academic Free License >= 2.1 OR the modified BSD license.
    see: http://dojotoolkit.org/license for details
*/
var http = require('http');
var nodestatic = require('node-static');
var fs = require('fs');
var checktimestamps = require('./checktimestamps');

var appdir = process.argv.length > 2 ? process.argv[2] : process.cwd();
appdir = fs.realpathSync(appdir);

var fileServer = new nodestatic.Server(appdir);

http.createServer(function (request, response) {
	if (!checktimestamps.handle(appdir, request, response)) {
		fileServer.serve(request, response);
	}
}).listen(8080);

console.log("lsjs server running");
