LarpixClient/electron/node_modules/pe-library
olcxja fb6c8b6ee9
All checks were successful
Android Build / publish (push) Successful in 55s
Linux Build / publish (push) Successful in 1m6s
update electron to v43
2026-07-09 22:38:33 +02:00
..
dist update electron to v43 2026-07-09 22:38:33 +02:00
CHANGELOG.md update electron to v43 2026-07-09 22:38:33 +02:00
LICENSE update electron to v43 2026-07-09 22:38:33 +02:00
package.json update electron to v43 2026-07-09 22:38:33 +02:00
README.md update electron to v43 2026-07-09 22:38:33 +02:00

NPM version Build Status

pe-library

pe-library provides parsing and generating Portable Executable (known as Windows Executables) binaries.

Usage

import * as PE from 'pe-library';
import * as fs from 'fs';

// load and parse data
let data = fs.readFileSync('MyApp.exe');
// (the Node.js Buffer instance can be specified directly to NtExecutable.from)
let exe = PE.NtExecutable.from(data);

// get section data
let exportSection = exe.getSectionByEntry(PE.Format.ImageDirectoryEntry.Export);
// read binary data stored in exportSection.data ...
// to write binary: use exe.setSectionByEntry

// write to buffer
let newBin = exe.generate();
fs.writeFileSync('MyApp_modified.exe', new Buffer(newBin));

License