read-binary-file-arch
v1.0.6
Published
Reads a binary file to determine its CPU architecture.
Downloads
772,993
Readme
read-binary-file-arch
A node module that reads the CPU architecture 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.
var { readBinaryFileArch } = require('read-binary-file-arch');
readBinaryFileArch(filePath).then((arch) => {
console.log('arch: ', arch);
}).catch((error) => {
console.error(error.message);
});
License
MIT