Help with converting ESplorer code into Arduino code

This is ESplorercode.
Type: Init.lua

-- Rui Santos
-- Complete project details at https://randomnerdtutorials.com

wifi.setmode(wifi.STATION)
wifi.sta.config("YOUR_NETWORK_NAME","YOUR_NETWORK_PASSWORD")
print(wifi.sta.getip())
led1 = 3
led2 = 4
gpio.mode(led1, gpio.OUTPUT)
gpio.mode(led2, gpio.OUTPUT)
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
    conn:on("receive", function(client,request)
        local buf = "";
        buf = buf.."HTTP/1.1 200 OK\n\n"
        local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP");
        if(method == nil)then
            _, _, method, path = string.find(request, "([A-Z]+) (.+) HTTP");
        end
        local _GET = {}
        if (vars ~= nil)then
            for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do
                _GET[k] = v
            end
        end
        
        if(_GET.pin == "ON1")then
              gpio.write(led1, gpio.HIGH);
        elseif(_GET.pin == "OFF1")then
              gpio.write(led1, gpio.LOW);
        elseif(_GET.pin == "ON2")then
              gpio.write(led2, gpio.HIGH);
        elseif(_GET.pin == "OFF2")then
              gpio.write(led2, gpio.LOW);
        end
        client:send(buf);
        client:close();
        collectgarbage();
    end)
end)

Can anyone convert this to arduino IDE compatible code..?

Can anyone convert this to arduino IDE compatible code..?

Perhaps it would help if you explained what the code does and which Arduino board you want it to run on

It also seems to be a request for a gig.

it is written in the programming language lua

init is the filename of that lua-file that gets executed after powerup of a nodeMCU ESP8266-board when flashed with the lua firmware. If you just flash a lua-firmware on your nodeMCU-board you can upload this loa-script using a PC-software like lualoader and you are done.

You have to examine which modules you need and then compose your own lua-firmware on this website
https://nodemcu-build.com

best regards Stefan

Perhaps it would help if you explained what the code does and which Arduino board you want it to run on

It just controls Two LEDs at GPIO0 and 1 pins of ESP8266-01 with 8pins
NOTE I do not have USB to serial adapter except arduino and I have programmed esp using arduino but this code is in another language so I want this to be converted.
It is a simple code!
Thank you:)

If you want someone to convert the code for you please click on 'report to moderator' and ask for it to be moved to 'gigs and collaborations'. Please indicate how much you are willing to pay.

PerryBebbington:
If you want someone to convert the code for you please click on 'report to moderator' and ask for it to be moved to 'gigs and collaborations'. Please indicate how much you are willing to pay.

So should I request it to move to gigs and collaborations !!??

aarg:
It also seems to be a request for a gig.

I reported it to moderator!