A easy to use, fully async wrapper for PS4debug written in JavaScript.
Use the package manager npm to install NodePS4debug.
npm install nodeps4debugconst{ connect, notify, disconnect, reboot, writeMemory, readMemory }=require("nodeps4debug");(async()=>{awaitconnect('192.168.137.166')// Returns true or an error code.constnotifyResponse=awaitnotify('Hello');console.log(notifyResponse);// Returns a Bufferconsole.log(disconnect())// Returns a booleanconsole.log(awaitgetProcessList())// Returns an Objectconsole.log(awaitwriteMemory(90,"0x5E394E1",Buffer.from("31C990",'hex')))console.log(awaitreadMemory(90,"0x5E394E1",Buffer.from("31C990",'hex')))constelfBuffer=fs.readFileSync('path/to/your/file.elf');// Read the .elf file and load itawaitloadElf(90,elfBuffer);console.log(reboot())})().catch(console.error);