Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pe-machine-type-descriptor

vweevers3.5kMIT1.0.0

Get name and description of PE machine types

executable, pe, pe-coff, portable-executable, windows

readme

pe-machine-type-descriptor

Get name and description of PE machine types. As specified by Microsoft PE and COFF Specification 9.3 [doc], section 3.1.1.

npm status node Travis build status AppVeyor build status Dependency status

example

const mt = require('pe-machine-type-descriptor')

console.log(mt(0x8664).type) // 'amd64'
console.log(mt(0x8664).description) // 'x64'

console.log(mt(0x1c4).type) // 'armnt'
console.log(mt(0x1c4).description) // 'ARM Thumb-2 little endian'

install

With npm do:

npm install pe-machine-type-descriptor

license

MIT © Vincent Weevers