Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
execute(args,options) {
Log.start();
let server = new AwesomeServer();
server.addHTTPServer({
hostname: "localhost",
port: options.port
});
server.route("*","*",(path,request)=>{
Log.access("Request "+request.method+" "+request.path+" from "+request.origin+".");
});
let zeph = AwesomeUtils.Module.resolve(module,"../../Zeph.js");
if (!AwesomeUtils.FS.existsSync(zeph)) {
console.error("Zeph.js was not found in the Zeph.js project root and is required. Please try reinstalling ZephJS from npm.");
process.exit(1);
}