{"id":17398500,"url":"https://github.com/vweevers/pe-machine-type","last_synced_at":"2025-03-29T20:15:42.650Z","repository":{"id":55828244,"uuid":"76904711","full_name":"vweevers/pe-machine-type","owner":"vweevers","description":"Get the CPU type of a Windows executable, cross-platform.","archived":false,"fork":false,"pushed_at":"2020-12-11T17:49:53.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:39:07.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vweevers.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-19T23:12:04.000Z","updated_at":"2020-12-24T15:49:41.000Z","dependencies_parsed_at":"2022-08-15T07:31:18.017Z","dependency_job_id":null,"html_url":"https://github.com/vweevers/pe-machine-type","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fpe-machine-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fpe-machine-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fpe-machine-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fpe-machine-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vweevers","download_url":"https://codeload.github.com/vweevers/pe-machine-type/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237436,"owners_count":20745348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-16T14:57:37.574Z","updated_at":"2025-03-29T20:15:42.615Z","avatar_url":"https://github.com/vweevers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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\u0026label=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\u0026label=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) \u003csup\u003e[doc]\u003c/sup\u003e, 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Fpe-machine-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvweevers%2Fpe-machine-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Fpe-machine-type/lists"}