pe-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

pe-parser build

PE Parser for Node.JS applications

Validation example

// The Validate promise throws if the PE file is invalid
try {
  const { architecture } = await Validate(file); // returns either 'x64' or 'x86'

  console.log(architecture);
} catch (e) {
  console.error(e);
}

Parsing example

// The parse function does not throw any errors as it assumes that the buffer is validated

const { dos_header, nt_headers, sections } = await Parse(file);

console.log(dos_header, nt_headers, sections);

Package Sidebar

Install

npm i pe-parser

Weekly Downloads

4

Version

1.0.11

License

GPL-3.0

Unpacked Size

47.3 kB

Total Files

9

Last publish

Collaborators

  • jirsh