https://github.com/vweevers/pe-machine-type-descriptor
Get name and description of PE machine types
https://github.com/vweevers/pe-machine-type-descriptor
Last synced: about 1 year ago
JSON representation
Get name and description of PE machine types
- Host: GitHub
- URL: https://github.com/vweevers/pe-machine-type-descriptor
- Owner: vweevers
- License: mit
- Created: 2016-12-19T21:52:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T17:49:51.000Z (over 5 years ago)
- Last Synced: 2025-03-28T21:39:07.344Z (about 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# pe-machine-type-descriptor
**Get name and description of [PE](https://en.wikipedia.org/wiki/Portable_Executable) machine types. As specified by [Microsoft PE and COFF Specification 9.3](https://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/pecoff_v83.docx) [doc], section 3.1.1.**
[](https://www.npmjs.org/package/pe-machine-type-descriptor) [](https://www.npmjs.org/package/pe-machine-type-descriptor) [](http://travis-ci.org/vweevers/pe-machine-type-descriptor) [](https://ci.appveyor.com/project/vweevers/pe-machine-type-descriptor) [](https://david-dm.org/vweevers/pe-machine-type-descriptor)
## example
```js
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'
```
## related
- [pe-signature](https://github.com/vweevers/pe-signature)
- [pe-signature-offset](https://github.com/vweevers/pe-signature-offset)
## install
With [npm](https://npmjs.org) do:
```
npm install pe-machine-type-descriptor
```
## license
[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers