{"_id":"pe-machine-type","_rev":"437725","name":"pe-machine-type","description":"Get the CPU type of a Windows executable, cross-platform","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"vweevers","email":""}],"time":{"modified":"2021-08-05T06:22:35.000Z","created":"2016-12-19T23:32:02.966Z","1.0.0":"2016-12-19T23:32:02.966Z"},"users":{},"author":{"name":"Vincent Weevers"},"repository":{"type":"git","url":"git+https://github.com/vweevers/pe-machine-type.git"},"versions":{"1.0.0":{"name":"pe-machine-type","version":"1.0.0","description":"Get the CPU type of a Windows executable, cross-platform","license":"MIT","author":{"name":"Vincent Weevers"},"files":["index.js"],"scripts":{"test":"node test.js"},"dependencies":{"pe-coff":"~1.0.0"},"devDependencies":{"tape":"~4.6.3"},"repository":{"type":"git","url":"git+https://github.com/vweevers/pe-machine-type.git"},"bugs":{"url":"https://github.com/vweevers/pe-machine-type/issues"},"homepage":"https://github.com/vweevers/pe-machine-type","keywords":["exe","executable","pe","pe-coff","portable-executable","windows"],"engines":{"node":">=4.0.0","npm":">=2.0.0"},"gitHead":"984807892846d3b8b1f9c1ab260abb317fa5c1f6","_id":"pe-machine-type@1.0.0","_shasum":"50ecb6ca2db46ddd53ba02d990aed191d29e27f8","_from":".","_npmVersion":"4.0.3","_nodeVersion":"6.8.0","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"name":"vweevers","email":""}],"dist":{"shasum":"50ecb6ca2db46ddd53ba02d990aed191d29e27f8","size":2278,"noattachment":false,"key":"/pe-machine-type/-/pe-machine-type-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pe-machine-type/download/pe-machine-type-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/pe-machine-type-1.0.0.tgz_1482190322343_0.1557712962385267"},"directories":{},"publish_time":1482190322966,"_cnpm_publish_time":1482190322966,"_hasShrinkwrap":false}},"readme":"# pe-machine-type\n\n**Get the CPU type of a Windows executable, cross-platform.**\n\n[![npm status](http://img.shields.io/npm/v/pe-machine-type.svg?style=flat-square)](https://www.npmjs.org/package/pe-machine-type) [![node](https://img.shields.io/node/v/pe-machine-type.svg?style=flat-square)](https://www.npmjs.org/package/pe-machine-type) [![Travis build status](https://img.shields.io/travis/vweevers/pe-machine-type.svg?style=flat-square&label=travis)](http://travis-ci.org/vweevers/pe-machine-type) [![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/pe-machine-type.svg?style=flat-square&label=appveyor)](https://ci.appveyor.com/project/vweevers/pe-machine-type) [![Dependency status](https://img.shields.io/david/vweevers/pe-machine-type.svg?style=flat-square)](https://david-dm.org/vweevers/pe-machine-type)\n\n## example\n\n```js\nconst mt = require('pe-machine-type')\n\nmt('chrome.exe', function (err, type) {\n  console.log(type) // 'amd64'\n})\n```\n\n## `mt(mixed, callback)`\n\nWhere `mixed` is either a filename or a file descriptor.\n\n## types\n\n| type      | description  |\n| --------- | ------------ |\n| unknown   | The contents of this field are assumed to be applicable to any machine type |\n| am33      | Matsushita AM33 |\n| amd64     | x64 |\n| arm       | ARM little endian |\n| armnt     | ARM Thumb-2 little endian |\n| ebc       | EFI byte code |\n| i386      | Intel 386 or later processors and compatible processors |\n| ia64      | Intel Itanium processor family |\n| m32r      | Mitsubishi M32R little endian |\n| mips16    | MIPS16 |\n| mipsfpu   | MIPS with FPU |\n| mipsfpu16 | MIPS16 with FPU |\n| powerpc   | Power PC little endian |\n| powerpcfp | Power PC with floating point support |\n| r4000     | MIPS little endian |\n| riscv32   | RISC-V 32-bit address space |\n| riscv64   | RISC-V 64-bit address space |\n| riscv128  | RISC-V 128-bit address space |\n| sh3       | Hitachi SH3 |\n| sh3dsp    | Hitachi SH3 DSP |\n| sh4       | Hitachi SH4 |\n| sh5       | Hitachi SH5 |\n| thumb     | Thumb |\n| wcemipsv2 | MIPS little-endian WCE v2 |\n\nAs 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) <sup>[doc]</sup>, section 3.3.1.\n\n## related\n\n- [pe-coff](https://github.com/vweevers/pe-coff])\n- [pe-machine-type-descriptor](https://github.com/vweevers/pe-machine-type-descriptor])\n- [pe-signature](https://github.com/vweevers/pe-signature)\n- [pe-signature-offset](https://github.com/vweevers/pe-signature-offset)\n\n## install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install pe-machine-type\n```\n\n## license\n\n[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers\n","_attachments":{},"homepage":"https://github.com/vweevers/pe-machine-type","bugs":{"url":"https://github.com/vweevers/pe-machine-type/issues"},"license":"MIT"}