Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.3 KB

File metadata and controls

41 lines (30 loc) · 1.3 KB

NodePS4debug

A easy to use, fully async wrapper for PS4debug written in JavaScript.

Installation

Use the package manager npm to install NodePS4debug.

npm install nodeps4debug

Usage

const { connect, notify, disconnect, reboot, writeMemory, readMemory } = require("nodeps4debug");

(async() => {
  await connect('192.168.137.166') // Returns true or an error code.
  const notifyResponse = await notify('Hello');
  console.log(notifyResponse); // Returns a Buffer
  console.log(disconnect()) // Returns a boolean
  console.log(await getProcessList()) // Returns an Object
  console.log(await writeMemory(90, "0x5E394E1", Buffer.from("31C990", 'hex')))
  console.log(await readMemory(90, "0x5E394E1", Buffer.from("31C990", 'hex')))
  const elfBuffer = fs.readFileSync('path/to/your/file.elf'); // Read the .elf file and load it
  await loadElf(90, elfBuffer);
  console.log(reboot())
})().catch(console.error);

Contributors

  • Jinx - Main package developer.
  • avieah - Main package developer.
  • DeathRGH - Contributing addresses and helping port code.

Helpful links