# read-binary-file-arch

> Reads a binary file to determine its CPU architecture.

Latest version **1.0.6** (published 2023-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install read-binary-file-arch
pnpm add read-binary-file-arch
yarn add read-binary-file-arch
bun add read-binary-file-arch
```

Provides the command `read-binary-file-arch`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-12-04 |
| First published | 2023-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Samuel Maddock |
| Maintainers | samuelmaddock |
| Keywords | binary, file, arch, process |

## Links

- npm: https://www.npmjs.com/package/read-binary-file-arch
- Repository: https://github.com/samuelmaddock/read-binary-file-arch
- Homepage: https://github.com/samuelmaddock/read-binary-file-arch#readme
- Issues: https://github.com/samuelmaddock/read-binary-file-arch/issues
- npm.io page: https://npm.io/package/read-binary-file-arch

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ^4.3.4

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2023-12-04
- 1.0.5 — 2023-11-21
- 1.0.4 — 2023-11-21
- 1.0.3 — 2023-11-20
- 1.0.2 — 2023-11-20
- 1.0.1 — 2023-11-20
- 1.0.0 — 2023-11-20

## README

# read-binary-file-arch

A node module that reads the [CPU architecture](https://nodejs.org/api/process.html#processarch) of a binary file.

	npm install read-binary-file-arch

## Usage

Pass a file path to `readBinaryFileArch`.

> [!NOTE]  
> Windows only supports valid PE binary files.

```js
var { readBinaryFileArch } = require('read-binary-file-arch');

readBinaryFileArch(filePath).then((arch) => {
  console.log('arch: ', arch);
}).catch((error) => {
  console.error(error.message);
});
```

## License

MIT

---
_Source: https://npm.io/package/read-binary-file-arch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
